SetTrapped

文档属性、印前制作

描述

通过 Info 字典 /Trapped 条目声明是否已对文档应用陷印

语法

Delphi

Function TPDFlib.SetTrapped(State: Integer): Integer;

参数

State0 写入 /Unknown,1 写入 /True(已应用陷印),2 写入 /False(未陷印)

返回值

0状态无效,或未选择文档
1状态已写入

备注

PDF/X 要求此键,以便打印提供程序判断文件是否仍需要陷印。该值是名称而非文本字符串(ISO 32000-1 14.11.6),因此它拥有独立的设置函数,而不通过 SetInformation。在必要时,写入它会将文档提升至 PDF 1.3

示例

PDF.SetTrapped(2);              // not trapped
PDF.SetOutputIntentSubtype('GTS_PDFX');

另请参阅

GetTrapped, SetOutputIntentSubtype, LoadOutputIntentProfile