pCOS Cookbook

cookbook

All Topics Overview

Document Interchange

document_metadataRetrieve the document's XMP meta data.
dpart_to_xmlTransform a PDF/VT DPart tree to XML.
dumperpCOS sample application for dumping PDF information.
image_metadataRetrieve the XMP metadata for all images in the document.
pdfaRetrieve PDF/A status and output intents.
pdfxRetrieve PDF/X status and output intents.
zugferd_retrieve_XMLRetrieve the XML invoice data from a ZUGFeRD document.

Interactive Elements

annotationsRetrieve the contents of all annotations.
articlesCreate a list of all articles contained in a PDF document.
attachmentsDetermine the total number of file attachments.
bookmarksRetrieve all bookmarks.
fieldsRetrieve form fields and emit field properties and values.
geospatialRetrieve geospatial reference information from a GeoPDF document.
javascriptCount javascript occurences in the document.
link_destinationsEnumerate all links in the document and determine the destination.
named_destinationsPrint the names of all destinations which are defined in the document.
package_propertiesDump package properties.
signaturesRetrieve digital signature information.
weblinksRetrieve the bounding box and the URL of all Web links on the page.

Pages

blocksCreate a list of all blocks contained on the pages of a PDF document and show their name, type and dimensions.
page_colorsList all color spaces.
page_fontsCreate a list of all fonts contained in a PDF document and check if they are embedded.
page_imagesPrint information about all images in the document.
page_initialviewDetermine the page at which Acrobat opens the document.
page_labelsPrint all page labels.
page_separationinfoPrint information about the color separations in the document.
page_sizeRetrieve the MediaBox and Rotation key for all pages.
page_transparencyIdentify transparent pages.

Resources

advanced_font_propertiesCreate a list of all fonts contained in a PDF document and print advanced properties of the fonts.
colorspacesList color spaces.
fontsCreate a list of all fonts contained in a PDF document and check if they are embedded.
imagesPrint information about all images in the document.

Special

defaultlayersEmit the indented list of layer names which is presented in Acrobat by default.
distiller_profileTest for the existence of an embedded Distiller profile. If one is found, its contents are retrieved.
icc_profilesExtract one or more ICC profiles from the document output intents.
layersCreate a list of all layers contained in a PDF document and show their names.