AddRoleMapNS
Taggad PDF, PDF-kompatibilitet
Beskrivning
Lägger till en /RoleMapNS-post som mappar en anpassad strukturtyp till en måltyp och valfritt mål-namespace
Syntax
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 LongParametrar
| SourceNamespaceID | Identifierare returnerad av AddStructureNamespace för det namespace som äger den anpassade typen |
|---|---|
| CustomType | Custom structure type name to map |
| TargetType | Destination structure type name |
| TargetNamespaceID | Destinationsnamespace-identifierare, eller 0 för att mappa till standardnamespace:et |
Returvärden
| 0 | En namespace-identifierare eller typnamn är ogiltigt |
|---|---|
| 1 | The mapping was stored |
Anmärkningar
Ett mål-namespace skilt från noll skriver PDF 2.0-arrayformen [/TargetType namespace-ref]; ett mål-namespace på noll skriver namnformen