Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 129

Previous Page 128   Index   Next Page 130

Function Reference
Page 129 of 750
files. PDF/A-1 compatible files must contain a rendering intent too if the document uses device
dependent color spaces (DeviceGray, DeviceRGB, or DeviceCMYK).
ICC profiles are available in different versions. Which profile versions are allowed to use depends on
the output PDF version:
PDF Version
ICC Specification Version
ICC Profile Version Number
PDF 1.3
3.3 or earlier
2.10
PDF 1.4
ICC.1:1998-09 and its addendum
2.20
ICC.1A:1999-04
PDF 1.5
ICC.1:2001-12
4.00
PDF 1.6
ICC.1:2003-09
4.10
PDF 1.7
ICC.1:2004-10
4.20
Please note that neither PDF/A-1 nor PDF/X-1 and PDF/X-3 support ICC profile major versions
higher than 2. The function checks the profile version only if the output version was set to a PDF/A
or PDF/X compatible version.
The function scans the document always for a suitable profile which is maybe already available in an
ICC-based color space. If a suitable profile can be found the function uses the already existing one so
that a profile must not be embedded twice.
The profile should be embedded at the end of processing, that means directly before calling
CloseFile() or CloseFileEx().
Return values:
If the function succeeds the return value is the handle of the Rendering Intent object, a value greater
or equal zero. If the function fails the return value is a negative error code.
AddOutputIntentEx
Syntax:
SI32 pdfAddRenderingIntentEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer, // File buffer of an ICC profile
UI32 BufSize)
// Buffer size in bytes
The function adds an ICC profile to the PDF file like AddOutputIntent() but accepts a file buffer as
input. See also AddOutputIntent().
Return values:
If the function succeeds the return value is the handle of the Rendering Intent object, a value greater
or equal zero. If the function fails the return value is a negative error code.
 

Previous topic: AddOutputIntent

Next topic: AddPageLabel