Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: testing/resources/named_dests.pdf

Issue 812933004: Add API tests for NamedDestsByName, DestGetPageIndex. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Incorporate page content as suggested by Bo. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/resources/named_dests.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 %PDF-1.7 1 %PDF-1.7
2 % ò¤ô 2 % ò¤ô
3 1 0 obj << 3 1 0 obj <<
4 /Type /Pages
5 /Count 1
6 /Kids [3 0 R]
7 >>
8 endobj
9 2 0 obj <<
10 /Type /Catalog 4 /Type /Catalog
11 /Pages 1 0 R 5 /Pages 2 0 R
12 /Names << 6 /Names <<
13 /Dests 10 0 R 7 /Dests 10 0 R
14 >> 8 >>
15 /Dests 14 0 R 9 /Dests 14 0 R
16 >> 10 >>
17 endobj 11 endobj
12 2 0 obj <<
13 /Type /Pages
14 /Count 2
15 /Kids [
16 3 0 R
17 4 0 R
18 ]
19 >>
20 endobj
21 % Page number 0.
18 3 0 obj << 22 3 0 obj <<
19 /Type /Page 23 /Type /Page
20 /Parent 1 0 R 24 /Parent 2 0 R
21 /Resources << 25 /Resources <<
22 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI] 26 /Font <</F1 15 0 R>>
23 >> 27 >>
28 /Contents [21 0 R]
24 /MediaBox [0 0 612 792] 29 /MediaBox [0 0 612 792]
25 /Contents 5 0 R
26 >> 30 >>
27 endobj 31 endobj
28 5 0 obj << 32 % Page number 1.
29 /Length 18 33 4 0 obj <<
30 >> stream 34 /Type /Page
31 1 0 0 -1 29 763 cm 35 /Parent 2 0 R
32 endstream 36 /Resources <<
37 /Font <</F1 15 0 R>>
38 >>
39 /Contents [22 0 R]
40 /MediaBox [0 0 612 792]
41 >>
33 endobj 42 endobj
34 % Root of Dests NameTree 43 % Root of Dests NameTree
35 10 0 obj << 44 10 0 obj <<
36 /Kids [ 45 /Kids [
37 11 0 R 46 11 0 R
38 12 0 R 47 12 0 R
39 ] 48 ]
40 >> 49 >>
41 endobj 50 endobj
42 % Left child for Dests NameTree 51 % Left child for Dests NameTree
43 11 0 obj << 52 11 0 obj <<
44 /Names [ 53 /Names [
45 (First) [0 /XYZ 0 0 1] 54 (First) [1 /XYZ 0 0 1]
46 (Next) <</D [4 /Fit]>> 55 (Next) <</D [4 0 R /Fit]>>
47 ] 56 ]
48 >> 57 >>
49 endobj 58 endobj
50 % Right child for Dests NameTree 59 % Right child for Dests NameTree
51 12 0 obj << 60 12 0 obj <<
52 /Names [ 61 /Names [
53 (WrongKey) <</Fail [10 /FitH]>> 62 (WrongKey) <</Fail [10 /FitH]>>
54 (WrongType) /NameNotAllowedHere 63 (WrongType) /NameNotAllowedHere
55 ] 64 ]
56 >> 65 >>
57 endobj 66 endobj
58 % Old-style top-level Dests dictionary. 67 % Old-style top-level Dests dictionary. Note that FirstAlternate
68 % intentionally references non-exisstant page 11 and LastAlternate
69 % intentionally references non-existant object 999.
59 14 0 obj << 70 14 0 obj <<
60 /FirstAlternate [10 /XYZ 200 400 800] 71 /FirstAlternate [11 /XYZ 200 400 800]
61 /LastAlternate <</D [14 /XYZ 0 0 -200]>> 72 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
62 >> 73 >>
63 endobj 74 endobj
75 % Font resource.
76 15 0 obj <<
77 /Type /Font
78 /Subtype /Type1
79 /BaseFont /Arial
80 >>
81 endobj
82 % Content for page 0.
83 21 0 obj <<
84 /Length 0
85 >>
86 stream
87 BT
88 /F1 20 Tf
89 100 600 TD (Page1)Tj
90 ET
91 endstream
92 endobj
93 % Content for page 1.
94 22 0 obj <<
95 /Length 0
96 >>
97 stream
98 BT
99 /F1 20 Tf
100 100 600 TD (Page2)Tj
101 ET
102 endstream
103 endobj
64 xref 104 xref
65 0 15 105 0 23
66 0000000000 65536 f 106 0000000000 65536 f
67 0000000015 00000 n 107 0000000015 00000 n
68 0000000078 00000 n 108 0000000119 00000 n
69 0000000182 00000 n 109 0000000217 00000 n
70 0000000000 65536 f 110 0000000378 00000 n
71 0000000349 00000 n
72 0000000000 65536 f 111 0000000000 65536 f
73 0000000000 65536 f 112 0000000000 65536 f
74 0000000000 65536 f 113 0000000000 65536 f
75 0000000000 65536 f 114 0000000000 65536 f
76 0000000444 00000 n
77 0000000534 00000 n
78 0000000658 00000 n
79 0000000000 65536 f 115 0000000000 65536 f
80 0000000808 00000 n 116 0000000548 00000 n
117 0000000638 00000 n
118 0000000766 00000 n
119 0000000000 65536 f
120 0000001060 00000 n
121 0000001188 00000 n
122 0000000000 65536 f
123 0000000000 65536 f
124 0000000000 65536 f
125 0000000000 65536 f
126 0000000000 65536 f
127 0000001283 00000 n
128 0000001393 00000 n
81 trailer << 129 trailer <<
82 /Size 6 130 /Size 6
83 /Root 2 0 R 131 /Root 1 0 R
84 >> 132 >>
85 startxref 133 startxref
86 914 134 1481
87 %%EOF 135 %%EOF
OLDNEW
« no previous file with comments | « testing/resources/named_dests.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698