SetOutputIntentSubtype

Document properties, Print production

Description

Retags the document's output intent with a different subtype, so an existing colour profile can describe a PDF/X printing condition instead of a PDF/A archiving one.

Syntax

Delphi

Function TPDFlib.SetOutputIntentSubtype(Const Subtype: WideString): Integer;

Parameters

SubtypeThe /S value, typically GTS_PDFX for print production or GTS_PDFA1 for archiving.

Return values

0The document has no output intent yet, or the subtype is empty.
1The output intent was retagged.

Remarks

SetPDFAMode and LoadOutputIntentProfile create the output intent tagged GTS_PDFA1; call this afterwards to declare a printing condition instead. Pair it with SetTrapped and a CMYK profile for a press-ready file.

Example

PDF.LoadOutputIntentProfile('CoatedFOGRA39.icc', 'DeviceCMYK');
PDF.SetOutputIntentSubtype('GTS_PDFX');
PDF.SetTrapped(2);

See also

GetOutputIntentSubtype, LoadOutputIntentProfile, SetTrapped