SetPageOutputIntent

Compliance, colour management

Description

Creates or replaces the explicit PDF 2.0 output intent for one page

Syntax

Delphi

Function SetPageOutputIntent(PageNumber: Integer; Const Subtype, ColorSpace, OutputConditionIdentifier, OutputCondition, Info, RegistryName, ProfileFileName: WideString): Integer;

Parameters

PageNumberOne-based page number
SubtypeRequired output intent subtype such as GTS_PDFX
ColorSpaceDeviceGray, DeviceRGB or DeviceCMYK
OutputConditionIdentifierRequired production-condition identifier
OutputConditionOptional human-readable condition
InfoOptional additional description
RegistryNameOptional registry URI
ProfileFileNameICC profile file, or an empty string to use the bundled sRGB profile with DeviceRGB

Return value

1 on success, 0 for an invalid page, subtype, colour space, missing identifier, unreadable profile or a non-RGB request without an ICC file

Remarks

The call requires PDF 2.0 and writes /OutputIntents directly on the page dictionary

An explicit page-level intent takes precedence over the document Catalog intent for that page; page tree nodes do not supply this value through ordinary page-attribute inheritance

See also

SetOutputIntentProfileReference, ClearPageOutputIntents, GetEffectivePageOutputIntentJSON, SetPDFXMode