Graphics Programs Reference
In-Depth Information
All parts of the date after the year are optional. For example,
(D:1999)
is perfectly valid.
Plainly, though, if you omit one part, you must omit everything which follows, other-
wise the result would be ambiguous. The default values for DD and MM is 01, for all
other parts, the default is zeros.
For example:
(D:20060926213913+02'00')
represents September 26th 2006 at 9:39:13 p.m, in a time zone two hours ahead of
Universal Time.
Putting it Together
This is a manually-created text, to be processed into a valid PDF file by
pdftk
using the
method introduced in
Chapter 2
. It is a three page document, with document infor-
mation dictionary and page tree.
Figure 4-3
shows this document displayed in Acrobat
Reader.
Figure 4-4
is the corresponding object graph.
Example 4-3. A three page document with document information dictionary
%PDF-1.0
Header
1 0 obj
Top-level of page tree: has two children—page one and an intermediate page tree node
<< /Kids [2 0 R 3 0 R] /Type /Pages /Count 3 >>
endobj
4 0 obj
Contents stream for page one
<< >>
stream
1. 0.000000 0.000000 1. 50. 770. cm BT /F0 36. Tf (Page One) Tj ET
endstream
endobj
2 0 obj
Page one
<<
/Rotate 0
/Parent 1 0 R
/Resources
<< /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >>
/MediaBox [0.000000 0.000000 595.275590551 841.88976378]
/Type /Page
/Contents [4 0 R]
>>
endobj
5 0 obj
Document catalog
<< /PageLayout /TwoColumnLeft /Pages 1 0 R /Type /Catalog >>
endobj
6 0 obj
Page three
<<
/Rotate 0
/Parent 3 0 R
/Resources
<< /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >>
/MediaBox [0.000000 0.000000 595.275590551 841.88976378]
/Type /Page