AddRoleMapNS

標籤式 PDF、PDF 相容性

描述

加入 /RoleMapNS 項目,把自訂結構類型對應到目標類型與選配的目標命名空間

語法

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

參數

SourceNamespaceIDAddStructureNamespace 傳回的識別碼,對應擁有該自訂類型的命名空間
CustomType要映射的自訂結構類型名稱
TargetTypeDestination structure type name
TargetNamespaceID目的地命名空間識別碼;0 表示映射到預設標準命名空間

傳回值

0命名空間識別碼或類型名稱無效
1The mapping was stored

備註

目標命名空間非零時寫出 PDF 2.0 陣列形式 [/TargetType namespace-ref];為零時寫出名稱形式

另請參閱

AddRoleMap, AddStructureNamespace, GetStructTreeItemText