Graphics Programs Reference
In-Depth Information
Putting it Together
The source for this file ( Example 2-1 ) can be found in the online resources for this
topic , or you can type it in yourself. Save it as hello-broken.pdf .
Example 2-1. The invalid hello-broken.pdf PDF file suitable for manual creation
%PDF-1.0 File header
1 0 obj Main objects
<< /Type /Pages
/Count 1
/Kids [2 0 R]
>>
endobj
2 0 obj
<< /Type /Page
/MediaBox [0 0 612 792]
/Resources 3 0 R
/Parent 1 0 R
/Contents [4 0 R]
>>
endobj
3 0 obj
<< /Font
<< /F0
<< /Type /Font
/BaseFont /Times-Italic
/Subtype /Type1 >>
>>
>>
endobj
4 0 obj Graphical content
<< >>
stream
1. 0. 0. 1. 50. 700. cm
BT
/F0 36. Tf
(Hello, World!) Tj
ET
endstream
endobj
5 0 obj Catalog, cross-reference table, and trailer
<< /Type /Catalog
/Pages 1 0 R
>>
endobj
xref
0 6
trailer
<< /Size 6
/Root 5 0 R
>>
Search WWH ::




Custom Search