THotPDF.AddLoadedOptionalContentGroup Method

在已加载文档中创建新的可选内容组(图层),并将其注册到 /OCProperties /OCGs 和默认的 /D 配置中

声明

function AddLoadedOptionalContentGroup(const AName: AnsiString; VisibleByDefault: boolean = True): Integer;

单元

HPDFDoc

参数

名称用途
ANameLayer name shown to PDF viewers
VisibleByDefault写入 default configuration's /ON 或 /OFF 数组的初始可见性

返回值

新图层在 OCG 数组中的索引,失败时为 -1

使用说明

相关 API