17.05.2014 Views

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 10.2 Operations which must be applied for PDF/X compatibility<br />

item<br />

grayscale color<br />

RGB color<br />

CMYK color<br />

document info keys<br />

<strong>PDFlib</strong> function and option requirements for PDF/X compatibility<br />

PDF/X-3/4/5: Grayscale images and setcolor( ) with a gray color space can only be used if the output<br />

condition is a grayscale or CMYK device, or if the defaultgray option in begin_page_ext( )<br />

has been set.<br />

PDF/X-3/4/5: RGB images and setcolor( ) with an RGB color space can only be used if the output<br />

condition is an RGB device, or the defaultrgb option in begin_page_ext( ) has been set.<br />

PDF/X-3/4/5: CMYK images and setcolor( ) with a CMYK color space can only be used if the output<br />

condition is a CMYK device, or the defaultcmyk option in begin_page_ext( ) has been set.<br />

The Creator and Title info keys must be set to a non-empty value with set_info( ) or (in PDF/X-4<br />

and PDF/X-5) with the xmp:CreatorTool and dc:title XMP properties in the metadata option of<br />

begin/end_document( )<br />

Prohibited operations. Table 10.3 lists all operations which are prohibited when generating<br />

PDF/X-conforming output. The items apply to all PDF/X conformance levels unless<br />

otherwise noted. Calling one of the prohibited functions while in PDF/X mode will<br />

trigger an exception. Similarly, if an imported PDF page doesn’t match the current PDF/<br />

X conformance level, the corresponding PDI call will fail.<br />

Table 10.3 Operations which must be avoided or are restricted to achieve PDF/X compatibility<br />

item<br />

grayscale color<br />

RGB color<br />

CMYK color<br />

ICC-based color<br />

Lab color<br />

annotations and<br />

form fields<br />

Prohibited or restricted <strong>PDFlib</strong> functions and options for PDF/X compatibility<br />

PDF/X-1a: the defaultgray option in begin_page_ext( ) must be avoided.<br />

PDF/X-1a: RGB images and the defaultrgb option in begin_page_ext( ) must be avoided.<br />

PDF/X-1a: the defaultcmyk option in begin_page_ext( ) must be avoided.<br />

PDF/X-1a: the iccbasedgray/rgb/cmyk color space in setcolor( ) and the setcolor:iccprofilegray/rgb/cmyk<br />

parameters must be avoided.<br />

PDF/X-1a: the Lab color space in setcolor( ) must be avoided.<br />

Annotations inside the BleedBox (or TrimBox/ArtBox if no BleedBox is present) must be avoided:<br />

create_annotation( ), create_field( ).<br />

file attachments PDF/X-1a/3: begin/end_document( ): option attachments must be avoided; create_annotation( )<br />

with type=FileAttachment must be avoided<br />

actions and<br />

JavaScript<br />

images<br />

transparent images<br />

and graphics<br />

All actions including JavaScript must be avoided: create_action( )<br />

PDF/X-1a: images with RGB, ICC-based, YCbCr, or Lab color must be avoided. For colorized images<br />

the alternate color of the spot color used must satisfy the same conditions.<br />

PDF/X-1 and PDF/X-3: JBIG2 images must be avoided.<br />

The OPI-1.3 and OPI-2.0 options in load_image( ) must be avoided.<br />

PDF/X-1 and PDF/X-3: Soft masks for images must be avoided: the masked option for load_<br />

image( ) must be avoided unless the mask refers to a 1-bit image. Images with implicit transparency<br />

(alpha channel) are not allowed; they must be loaded with the ignoremask option of load_<br />

image( ). The opacityfill and opacitystroke options for create_gstate( ) must be avoided unless<br />

they have a value of 1; if blendmode is used it must be Normal.<br />

Transparent images and graphics are allowed in PDF/X-4 and PDF/X-5.<br />

10.3 PDF/X for Print Production 255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!