SetTrapped

文件屬性、印刷生產

描述

透過 Info 字典的 /Trapped 項目,宣告文件是否已做過 trapping(補漏白)

語法

Delphi

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

參數

State0 寫入 /Unknown,1 寫入 /True(已補漏白),2 寫入 /False(未補漏白)。

傳回值

0狀態無效,或未選取任何文件。
1The state was written.

備註

PDF/X 需要這個鍵,印刷廠才能判斷檔案是否還需要補漏白。值是名稱而不是文字字串(ISO 32000-1 14.11.6),因此它有自己的 setter,不走 SetInformation。必要時寫入會把文件提升到 PDF 1.3。

範例

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

另見

GetTrapped, SetOutputIntentSubtype, LoadOutputIntentProfile