THotPDF.EnsurePDFX1aContentColorSpaces Method
Validates the already-written page content against the PDF/X-1a content colour rules of ISO 15930-1:2001 6.2.3. The walk rejects DeviceRGB, CalRGB, and ICCBased RGB content by raising an exception that names the first offending resource location
Declaration
procedure EnsurePDFX1aContentColorSpaces;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
| This member does not expose explicit parameters | |
Return value
This member does not return a value
Usage notes
- PDF/X-1a restricts content colour to DeviceCMYK, DeviceGray, and spot colourants whose Separation or DeviceN alternates are CMYK or Gray, because the GTS_PDFX OutputIntent names a CMYK print condition
- The recursive walk covers colour-space dictionaries, image XObjects, Form XObjects, tiling and shading Pattern resources, and shading dictionaries, following Indexed bases and Separation or DeviceN alternates
- A draw-time flag records inline rg and RG operator usage, so RGB content drawn before PDFXCompliance or the OutputIntent was selected is rejected as well
- EndDoc runs the validation automatically for X-1a compliance; call it directly for earlier diagnostics
- Raises an exception naming the offending resource location on the first violation