OLD | NEW |
---|---|
(Empty) | |
1 {{header}} | |
2 {{object 1 0}} << | |
3 /Type /Catalog | |
4 /Pages 2 0 R | |
5 >> | |
6 {{object 2 0}} << | |
7 /Type /Pages | |
8 /MediaBox [ 0 0 200 200 ] | |
9 /Count 1 | |
10 /Kids [ 3 0 R ] | |
11 >> | |
12 endobj | |
13 {{object 3 0}} << | |
14 /Type /Page | |
15 /Parent 2 0 R | |
16 /Resources << | |
17 /Font << | |
18 /F1 4 0 R | |
19 /F2 5 0 R | |
20 >> | |
21 >> | |
22 /Contents 6 0 R | |
23 >> | |
24 endobj | |
25 {{object 4 0}} << | |
26 /Type /Font | |
27 /Subtype /Type1 | |
28 /BaseFont /Times-Roman | |
29 >> | |
30 endobj | |
31 {{object 5 0}} << | |
32 /Type /Font | |
33 /Subtype /Type1 | |
34 /BaseFont /Helvetica | |
35 >> | |
36 endobj | |
37 % Case 1: | |
38 % Earlier version of PDF doesn't require EOL before 'endstream'. If the length | |
39 % of bytes end before 'endstream', we should take it. | |
40 {{object 6 0}} << | |
41 /Length 107 | |
42 >> | |
43 stream | |
44 BT | |
45 20 50 Td | |
46 /F1 12 Tf | |
47 (endobj is text) Tj | |
48 endstream | |
49 0 50 Td | |
50 /F2 13 Tf | |
51 (endstream is text per /Length) Tj | |
52 ETendstream | |
53 endobj | |
54 {{xref}} | |
55 trailer << | |
56 /Size 6 | |
57 /Root 1 0 R | |
58 >> | |
59 {{startxref}} | |
60 %%EOF | |
OLD | NEW |