10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Alternatively, you can use the pdiusebox option to explicitly instruct PDI to use any ofthe MediaBox, CropBox, BleedBox, TrimBox or ArtBox entries of a page (if present) fordetermining the size of the imported page.Imported PDF pages with layers. Acrobat 6 (PDF 1.5) introduced the layer functionality(technically known as optional content). PDI will ignore any layer information whichmay be present in a file. All layers in the imported page, including invisible layers, willbe visible in the generated output.Imported PDF with OPI information.retained in the output unmodified.OPI information present in the input PDF will beOptimization across multiple imported documents. While PDFlib itself creates highlyoptimized PDF output, imported PDF may contain redundant data structures which canbe optimized. In addition, importing multiple PDFs may bloat the output file size whenmultiple files contain identical resources, e.g. fonts. In this situation you can use theoptimize option of PDF_begin_document( ). It will detect redundant objects in importedfiles, and remove them without affecting the visual appearance or quality of the generatedoutput.6.2.3 Acceptable PDF DocumentsGenerally, PDI will happily process all kinds of PDF documents which can be openedwith Acrobat, regardless of PDF version number or features used within the file. In orderto import pages from encrypted documents (i.e., files with permission settings or password)the corresponding master password must be supplied.PDI implements a repair mode for damaged PDFs so that even certain kinds of damageddocuments can be opened. However, in rare cases a PDF document or a particularpage of a document may be rejected by PDI.If a PDF document or page can’t be imported successfully PDF_open_pdi_document( )and PDF_open_pdi_page( ) will return an error code. If you need to know more detailsabout the failure you can query the reason with PDF_get_errmsg( ). Alternatively, youcan set the errorpolicy option or parameter to true, which will result in an exception ifthe document cannot be opened.The following kinds of PDF documents will be rejected by default; however, they canbe opened for querying information with pCOS (as opposed to importing pages) by settingthe infomode option to true:> PDF documents which use a higher PDF version number than the PDF output documentthat is currently being generated can not be imported with PDI. The reason isthat PDFlib can no longer make sure that the output will actually conform to the requestedPDF version after a PDF with a higher version number has been imported.Solution: set the version of the output PDF to the required level using the compatibilityoption in PDF_begin_document( ).> Encrypted PDF documents without the corresponding password (exception: PDF 1.6documents created with the Distiller setting »Object Level Compression: Maximum«;these cannot be opened even in info mode).> Tagged PDF when the tagged option in PDF_begin_document( ) is true.> PDF/A or PDF/X documents which don’t conform to the PDF/A or PDF/X level of thecurrent output document.132 Chapter 6: Importing Images and PDF Pages

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

Saved successfully!

Ooh no, something went wrong!