AddRoleMapNS

Getagde PDF, PDF-compatibiliteit

Beschrijving

Voegt een /RoleMapNS-entry toe die een custom structuurtype aan een doeltype en een optionele doelnamespace toewijst

Syntaxis

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

Parameters

SourceNamespaceIDIdentificator geretourneerd door AddStructureNamespace voor de naamruimte die het custom type bezit
CustomTypeCustom structure type name to map
TargetTypeDestination structure type name
TargetNamespaceIDBestemmingsnaamruimte-identificator, of 0 om te mappen naar de default standaardnaamruimte

Retourwaarden

0A namespace identifier or type name is invalid
1De mapping is opgeslagen

Opmerkingen

Een doelnaamruimte ongelijk aan nul schrijft de PDF 2.0-arrayvorm [/TargetType namespace-ref]; een doelnaamruimte van nul schrijft de naamvorm

Zie ook

AddRoleMap, AddStructureNamespace, GetStructTreeItemText