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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating PDF/A and PDF/X at the same time. A PDF/A-1 document can at the same<br />

time conform to PDF/X-1a:2003, PDF/X-3:2003, or PDF/X-4 (but not to PDF/X-4p or<br />

PDF/X-5). In order to create such a combo file supply appropriate values for the pdfa<br />

and pdfx options of begin_document( ), e.g.:<br />

ret = p.begin_document("combo.pdf", "pdfx=PDF/X-4 pdfa=PDF/A-1b:2005");<br />

The output intent must be the same for PDF/A and PDF/X, and must be specified as an<br />

output device ICC profile. PDF/X standard output conditions can only be used in combination<br />

with the embedprofile option.<br />

10.4.3 Importing PDF/A Documents with PDI<br />

Special rules apply when pages from an existing PDF document will be imported into a<br />

PDF/A-conforming output document (see Section 7.2, »Importing PDF Pages with PDI«,<br />

page 188, for details on PDI). All imported documents must conform to a PDF/A conformance<br />

level which is compatible to the current PDF/A mode according to Table 10.10.<br />

Note <strong>PDFlib</strong> does not validate PDF input documents for PDF/A compliance, nor can it create valid<br />

PDF/A from arbitrary input PDFs.<br />

If a certain PDF/A conformance level is configured in <strong>PDFlib</strong> and the imported documents<br />

adhere to a compatible level, the generated output is guaranteed to comply with<br />

the selected PDF/A conformance level. Documents which are incompatible to the current<br />

PDF/A level will be rejected in open_pdi_document( ).<br />

Table 10.10 Compatible PDF/A input levels for various PDF/A output levels<br />

PDF/A level of the imported document<br />

PDF/A output level PDF/A-1a:2005 PDF/A-1b:2005<br />

PDF/A-1a:2005 – –<br />

PDF/A-1b:2005 allowed allowed<br />

Cookbook A full code sample can be found in the Cookbook topic pdfa/import_pdfa.<br />

If one or more PDF/A documents are imported, they must all have been prepared for a<br />

compatible output condition according to Table 10.11. The output intents in all imported<br />

documents must be identical or compatible; it is the user’s responsibility to make<br />

sure that this condition is met.<br />

Table 10.11 Output intent compatibility when importing PDF/A documents<br />

output intent of imported document<br />

output intent of generated document none Grayscale RGB CMYK<br />

none yes – – –<br />

Grayscale ICC profile yes yes 1<br />

– –<br />

RGB ICC profile yes – yes 1 –<br />

CMYK ICC profile yes – – yes 1<br />

1. Output intent of the imported document and output intent of the generated document must be identical<br />

264 Chapter 10: PDF Versions and Standards (Edition for <strong>COM</strong>, .<strong>NET</strong>, and REALbasic)

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

Saved successfully!

Ooh no, something went wrong!