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.

11.8 <strong>PDFlib</strong> Block Specification<br />

The Block syntax fully conforms to the PDF Reference which specifies an extension<br />

mechanism that allows applications to store private data attached to the data structures<br />

comprising a PDF page. A detailed description of the <strong>PDFlib</strong> Block syntax is provided<br />

here for the benefit of users who wish to create Blocks by other means than the Block<br />

Plugin. Plugin users can safely skip this section.<br />

11.8.1 PDF Object Structure for <strong>PDFlib</strong> Blocks<br />

The page dictionary contains a PieceInfo entry, which has another dictionary as value.<br />

This dictionary contains the key <strong>PDFlib</strong> with an application data dictionary as value. The<br />

application data dictionary contains two standard keys listed in Table 11.14.<br />

Table 11.14 Entries in a <strong>PDFlib</strong> application data dictionary<br />

key<br />

LastModified<br />

value<br />

(Data string; required) The date and time when the Blocks on the page were created or most recently<br />

modified.<br />

Private (Dictionary; required) A Block list (see Table 11.15)<br />

A Block list is a dictionary containing general information about Block processing, plus<br />

a list of all Blocks on the page. Table 11.15 lists the keys in a Block list dictionary.<br />

Table 11.15 Entries in a Block list dictionary<br />

key<br />

Version<br />

Blocks<br />

PluginVersion<br />

pdfmark<br />

value<br />

(Number; required) The version number of the Block specification to which the file complies. This document<br />

describes version 9 of the Block specification.<br />

(Dictionary; required) Each key is a name object containing the name of a Block; the corresponding value<br />

is the Block dictionary for this Block (see Table 11.17). The value of the Name key in the Block dictionary<br />

must be identical to the Block’s name in this dictionary.<br />

(String; required unless the pdfmark key is present 1 ) A string containing a version identification of the<br />

Block Plugin which has been used to create the Blocks.<br />

(Boolean; required unless the PluginVersion key is present 1 ) Must be true if the Block list has been generated<br />

by use of pdfmarks.<br />

1. Exactly one of the PluginVersion and pdfmark keys must be present.<br />

314 Chapter 11: PPS and the <strong>PDFlib</strong> Block Plugin (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!