THotPDF.RegisterOptionalContentGroup Method

方法摘要: THotPDF.RegisterOptionalContentGroup Method

声明

function RegisterOptionalContentGroup(const LayerName : AnsiString; VisibleByDefault : boolean = true; UserToggleAllowed : boolean = true): AnsiString;

单元

HPDFDoc

参数

名称用途
LayerName写入 OCG /Name 的图层名称
VisibleByDefault为 True 时写入 /OCProperties /D /ON,为 False 时写入 /OFF
UserToggleAllowed为 False 时把该 OCG 写入 /OCProperties /D /Locked,提示查看器不要把它作为可由用户切换的图层

返回值

返回 AnsiString 值

使用说明

相关 API