AddRoleMapNS

Tagged PDF, PDF compatibility

Popis

Adds a /RoleMapNS entry that maps a custom structure type to a target type and optional target namespace

Syntaxe

Delphi

Function TPDFlib.AddRoleMapNS(SourceNamespaceID: Integer; Const CustomType, TargetType: WideString; TargetNamespaceID: Integer): Integer;

DLL

Function DLAddRoleMapNS(InstanceID, SourceNamespaceID: Integer; CustomType, TargetType: PWideChar; TargetNamespaceID: Integer): Integer; Stdcall;

ActiveX

Function PDFlib::AddRoleMapNS(SourceNamespaceID As Long, CustomType As String, TargetType As String, TargetNamespaceID As Long) As Long

Parametry

SourceNamespaceIDIdentifikátor vrácený funkcí AddStructureNamespace pro namespace, do něhož vlastní typ patří
CustomTypeCustom structure type name to map
TargetTypeDestination structure type name
TargetNamespaceIDIdentifikátor cílového namespace, nebo 0 pro mapování na výchozí standardní namespace

Návratové hodnoty

0A namespace identifier or type name is invalid
1The mapping was stored

Poznámky

Nenulový cílový namespace zapíše pole ve formátu PDF 2.0 [/TargetType namespace-ref]; nulový cílový namespace zapíše jmennou formu

Viz také

AddRoleMap, AddStructureNamespace, GetStructTreeItemText