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

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 Long

Parameters

SourceNamespaceIDIdentificator geretourneerd door AddStructureNamespace voor de naamruimte die het custom type bezit
CustomTypeCustom structuurtypenaam om te mappen
TargetTypeDoelstructuurtypenaam
TargetNamespaceIDBestemmingsnaamruimte-identificator, of 0 om te mappen naar de default standaardnaamruimte

Retourwaarden

0Een naamruimte-identificator of typenaam is ongeldig
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