CIB pdf toolbox technical guide (EN)

8. Retrieving PDF information

(from CIB pdf toolbox Version 1.6.116f onwards)

With a CIB pdf toolbox join global document properties can be read from the PDF. For this purpose the property OutputFormat must be set to the value "FormatInfo". Only one PDF file may be specified as input document. The specification of an output file is ignored. Apart from reading the document properties, no further processing takes place.

The values from the PDF are transferred to properties. Specifically, the following properties are involved:

PageCount:

Number of pages in the document

PageCount:

Number of pages in the document

DocInfo.Author:

Author

DocInfo.Title:

Title

DocInfo.Subject:

Subject

DocInfo.Keywords:

Keywords

DocInfo.CreationDate:

Creation date

DocInfo.ModDate:

Modification date

PdfPermissionAssembly:

Swap pages, generate bookmarks and thumbnails is (not) allowed

PdfPermissionContentAccess:

Cutting text and graphics (not) allowed

PdfPermissionCopy:

Copying text and graphics (not) allowed

PdfPermissionFillFormFields:

Filling in form fields, including signature fields, is not allowed

PdfPermissionPrint:

Printing (not) allowed

 

From CIB pdf toolbox Version 1.20 onwards, additional information about fonts and images can be included in a PDF document.

For this purpose the property FilterInfo must be set with the options „FilterInfo=FontsInfo;ImagesInfo“.This will fill the output properties FontsInfo and ImagesInfo.

ImagesInfo has the following JSON syntax:

[
\{”ID”:<NumID>, “Height”:<NumHeight>, “Width”:<NumWidth>, “IsMask”:<true/false>, “CompressionMethod”:”<Method>”, “CompressedSize”:<Size>}
,...]


Example:

[
\{”ID”:15, “Height”:32, “Width”:32, “IsMask”:false, “CompressionMethod”:”DCTDecode”, “CompressedSize”:256}
,...]


FontsInfo has the following JSON syntax:

[ \{”ID”:<NumID>, “Name”:”<FontName>”, “Type”:”<FontType>”,”Embedded”:<true/false>,”CompressedSize”:<NumericSize>}} ...]


Example:

[ \{”ID”:10, “Name”:”Courier”, “Type”:”Type1”,”Embedded”:true,”CompressedSize”:1024}}, ...]