AddRoleMapNS
Tagged PDF, PDF compatibility
Description
Adds a /RoleMapNS entry that maps a custom structure type to a target type and optional target namespace
Syntax
Delphi
Function TPDFlib.AddRoleMapNS(SourceNamespaceID: Integer; Const CustomType, TargetType: WideString; TargetNamespaceID: Integer): Integer;DLL
int DLAddRoleMapNS(int InstanceID, int SourceNamespaceID, const wchar_t* CustomType, const wchar_t* TargetType, int TargetNamespaceID);
int DLAddRoleMapNSA(int InstanceID, int SourceNamespaceID, const char* CustomType, const char* TargetType, int TargetNamespaceID);ActiveX
Function PDFlib::AddRoleMapNS(SourceNamespaceID As Long, CustomType As String, TargetType As String, TargetNamespaceID As Long) As LongParameters
| SourceNamespaceID | Identifier returned by AddStructureNamespace for the namespace that owns the custom type |
|---|---|
| CustomType | Custom structure type name to map |
| TargetType | Destination structure type name |
| TargetNamespaceID | Destination namespace identifier, or 0 to map to the default standard namespace |
Return values
| 0 | A namespace identifier or type name is invalid |
|---|---|
| 1 | The mapping was stored |
Remarks
A nonzero target namespace writes the PDF 2.0 array form [/TargetType namespace-ref]; a zero target namespace writes the name form