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

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

Issue 1404723002: Add unit test for top-level bookmarks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Better test, flunks on early !pDict return. Created 5 years, 2 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/bookmarks.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 /Catalog 4 /Type /Catalog
5 /Pages 2 0 R 5 /Pages 2 0 R
6 /Names << 6 /Outlines 14 0 R
7 /Dests 10 0 R
8 >>
9 /Dests 14 0 R
10 >> 7 >>
11 endobj 8 endobj
12 2 0 obj << 9 2 0 obj <<
13 /Type /Pages 10 /Type /Pages
14 /Count 2 11 /Count 2
15 /Kids [ 12 /Kids [
16 3 0 R 13 3 0 R
17 4 0 R 14 4 0 R
18 ] 15 ]
19 >> 16 >>
(...skipping 13 matching lines...) Expand all
33 4 0 obj << 30 4 0 obj <<
34 /Type /Page 31 /Type /Page
35 /Parent 2 0 R 32 /Parent 2 0 R
36 /Resources << 33 /Resources <<
37 /Font <</F1 15 0 R>> 34 /Font <</F1 15 0 R>>
38 >> 35 >>
39 /Contents [22 0 R] 36 /Contents [22 0 R]
40 /MediaBox [0 0 612 792] 37 /MediaBox [0 0 612 792]
41 >> 38 >>
42 endobj 39 endobj
43 % Root of Dests NameTree 40 % First bookmark
44 10 0 obj << 41 10 0 obj <<
45 /Kids [ 42 /Title (A Good Beginning)
46 11 0 R 43 /Parent 14 0 R
47 12 0 R 44 /Next 11 0 R
48 ] 45 /Dest (foo)
49 >> 46 >>
50 endobj 47 endobj
51 % Left child for Dests NameTree 48 % Last bookmark
52 11 0 obj << 49 11 0 obj <<
53 /Names [ 50 /Title (A Good Ending)
54 (First) [1 /XYZ 0 0 1] 51 /Parent 14 0 R
55 (Next) <</D [4 0 R /Fit]>> 52 /Prev 10 0 R
56 ] 53 /Dest (bar)
57 >> 54 >>
58 endobj 55 endobj
59 % Right child for Dests NameTree 56 % Root bookmark
60 12 0 obj <<
61 /Names [
62 (WrongKey) <</Fail [10 /FitH]>>
63 (WrongType) /NameNotAllowedHere
64 ]
65 >>
66 endobj
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.
70 14 0 obj << 57 14 0 obj <<
71 /FirstAlternate [11 /XYZ 200 400 800] 58 /Type /Outlines
72 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>> 59 /First 10 0 R
60 /Last 11 0 R
61 /Count 2
73 >> 62 >>
74 endobj 63 endobj
75 % Font resource. 64 % Font resource.
76 15 0 obj << 65 15 0 obj <<
77 /Type /Font 66 /Type /Font
78 /Subtype /Type1 67 /Subtype /Type1
79 /BaseFont /Arial 68 /BaseFont /Arial
80 >> 69 >>
81 endobj 70 endobj
82 % Content for page 0. 71 % Content for page 0.
(...skipping 15 matching lines...) Expand all
98 BT 87 BT
99 /F1 20 Tf 88 /F1 20 Tf
100 100 600 TD (Page2)Tj 89 100 600 TD (Page2)Tj
101 ET 90 ET
102 endstream 91 endstream
103 endobj 92 endobj
104 xref 93 xref
105 0 23 94 0 23
106 0000000000 65535 f 95 0000000000 65535 f
107 0000000015 00000 n 96 0000000015 00000 n
108 0000000119 00000 n 97 0000000087 00000 n
109 0000000217 00000 n 98 0000000185 00000 n
110 0000000378 00000 n 99 0000000346 00000 n
111 0000000000 65535 f 100 0000000000 65535 f
112 0000000000 65535 f 101 0000000000 65535 f
113 0000000000 65535 f 102 0000000000 65535 f
114 0000000000 65535 f 103 0000000000 65535 f
115 0000000000 65535 f 104 0000000000 65535 f
116 0000000548 00000 n 105 0000000508 00000 n
117 0000000638 00000 n 106 0000000620 00000 n
118 0000000766 00000 n
119 0000000000 65535 f 107 0000000000 65535 f
120 0000001060 00000 n 108 0000000000 65535 f
121 0000001188 00000 n 109 0000000729 00000 n
110 0000000829 00000 n
122 0000000000 65535 f 111 0000000000 65535 f
123 0000000000 65535 f 112 0000000000 65535 f
124 0000000000 65535 f 113 0000000000 65535 f
125 0000000000 65535 f 114 0000000000 65535 f
126 0000000000 65535 f 115 0000000000 65535 f
127 0000001283 00000 n 116 0000000924 00000 n
128 0000001393 00000 n 117 0000001034 00000 n
129 trailer << 118 trailer <<
130 /Size 6 119 /Size 6
131 /Root 1 0 R 120 /Root 1 0 R
132 >> 121 >>
133 startxref 122 startxref
134 1481 123 1122
135 %%EOF 124 %%EOF
OLDNEW
« no previous file with comments | « testing/resources/bookmarks.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698