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
| PageNumber | One-based page number |
|---|---|
| Subtype | Required output intent subtype such as GTS_PDFX |
| ColorSpace | DeviceGray, DeviceRGB or DeviceCMYK |
| OutputConditionIdentifier | Required production-condition identifier |
| OutputCondition | Optional human-readable condition |
| Info | Optional additional description |
| RegistryName | Optional registry URI |
| ProfileFileName | ICC 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