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

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: comments in pdf. 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
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 1 0 R
21 /Resources << 25 /Resources <<
22 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI] 26 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI]
23 >> 27 >>
24 /MediaBox [0 0 612 792] 28 /MediaBox [0 0 612 792]
25 /Contents 5 0 R
26 >> 29 >>
27 endobj 30 endobj
28 5 0 obj << 31 % Page number 1.
29 /Length 18 32 4 0 obj <<
30 >> stream 33 /Type /Page
31 1 0 0 -1 29 763 cm 34 /Parent 1 0 R
32 endstream 35 /Resources <<
36 /ProcSets [/PDF]
37 >>
38 /MediaBox [0 0 612 792]
39 >>
33 endobj 40 endobj
34 % Root of Dests NameTree 41 % Root of Dests NameTree
35 10 0 obj << 42 10 0 obj <<
36 /Kids [ 43 /Kids [
37 11 0 R 44 11 0 R
38 12 0 R 45 12 0 R
39 ] 46 ]
40 >> 47 >>
41 endobj 48 endobj
42 % Left child for Dests NameTree 49 % Left child for Dests NameTree
43 11 0 obj << 50 11 0 obj <<
44 /Names [ 51 /Names [
45 (First) [0 /XYZ 0 0 1] 52 (First) [1 /XYZ 0 0 1]
46 (Next) <</D [4 /Fit]>> 53 (Next) <</D [4 0 R /Fit]>>
47 ] 54 ]
48 >> 55 >>
49 endobj 56 endobj
50 % Right child for Dests NameTree 57 % Right child for Dests NameTree
51 12 0 obj << 58 12 0 obj <<
52 /Names [ 59 /Names [
53 (WrongKey) <</Fail [10 /FitH]>> 60 (WrongKey) <</Fail [10 /FitH]>>
54 (WrongType) /NameNotAllowedHere 61 (WrongType) /NameNotAllowedHere
55 ] 62 ]
56 >> 63 >>
57 endobj 64 endobj
58 % Old-style top-level Dests dictionary. 65 % Old-style top-level Dests dictionary. Note that FirstAlternate
66 % intentionally references non-exisstant page 11 and LastAlternate
67 % intentionally references non-existant object 999.
59 14 0 obj << 68 14 0 obj <<
60 /FirstAlternate [10 /XYZ 200 400 800] 69 /FirstAlternate [11 /XYZ 200 400 800]
61 /LastAlternate <</D [14 /XYZ 0 0 -200]>> 70 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
62 >> 71 >>
63 endobj 72 endobj
64 xref 73 xref
65 0 15 74 0 15
66 0000000000 65536 f 75 0000000000 65536 f
67 0000000015 00000 n 76 0000000015 00000 n
68 0000000078 00000 n 77 0000000119 00000 n
69 0000000182 00000 n 78 0000000217 00000 n
70 0000000000 65536 f 79 0000000383 00000 n
71 0000000349 00000 n
72 0000000000 65536 f 80 0000000000 65536 f
73 0000000000 65536 f 81 0000000000 65536 f
74 0000000000 65536 f 82 0000000000 65536 f
75 0000000000 65536 f 83 0000000000 65536 f
76 0000000444 00000 n
77 0000000534 00000 n
78 0000000658 00000 n
79 0000000000 65536 f 84 0000000000 65536 f
80 0000000808 00000 n 85 0000000527 00000 n
86 0000000617 00000 n
87 0000000745 00000 n
88 0000000000 65536 f
89 0000001039 00000 n
81 trailer << 90 trailer <<
82 /Size 6 91 /Size 6
83 /Root 2 0 R 92 /Root 1 0 R
84 >> 93 >>
85 startxref 94 startxref
86 914 95 1150
87 %%EOF 96 %%EOF
OLDNEW
« testing/resources/named_dests.in ('K') | « testing/resources/named_dests.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698