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

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

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 | « fpdfsdk/src/fpdfdoc_embeddertest.cpp ('k') | testing/resources/bookmarks.pdf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{header}} 1 {{header}}
2 {{object 1 0}} << 2 {{object 1 0}} <<
3 /Type /Catalog 3 /Type /Catalog
4 /Pages 2 0 R 4 /Pages 2 0 R
5 /Names << 5 /Outlines 14 0 R
6 /Dests 10 0 R
7 >>
8 /Dests 14 0 R
9 >> 6 >>
10 endobj 7 endobj
11 {{object 2 0}} << 8 {{object 2 0}} <<
12 /Type /Pages 9 /Type /Pages
13 /Count 2 10 /Count 2
14 /Kids [ 11 /Kids [
15 3 0 R 12 3 0 R
16 4 0 R 13 4 0 R
17 ] 14 ]
18 >> 15 >>
(...skipping 13 matching lines...) Expand all
32 {{object 4 0}} << 29 {{object 4 0}} <<
33 /Type /Page 30 /Type /Page
34 /Parent 2 0 R 31 /Parent 2 0 R
35 /Resources << 32 /Resources <<
36 /Font <</F1 15 0 R>> 33 /Font <</F1 15 0 R>>
37 >> 34 >>
38 /Contents [22 0 R] 35 /Contents [22 0 R]
39 /MediaBox [0 0 612 792] 36 /MediaBox [0 0 612 792]
40 >> 37 >>
41 endobj 38 endobj
42 % Root of Dests NameTree 39 % First bookmark
43 {{object 10 0}} << 40 {{object 10 0}} <<
44 /Kids [ 41 /Title (A Good Beginning)
45 11 0 R 42 /Parent 14 0 R
46 12 0 R 43 /Next 11 0 R
47 ] 44 /Dest (foo)
48 >> 45 >>
49 endobj 46 endobj
50 % Left child for Dests NameTree 47 % Last bookmark
51 {{object 11 0}} << 48 {{object 11 0}} <<
52 /Names [ 49 /Title (A Good Ending)
53 (First) [1 /XYZ 0 0 1] 50 /Parent 14 0 R
54 (Next) <</D [4 0 R /Fit]>> 51 /Prev 10 0 R
55 ] 52 /Dest (bar)
56 >> 53 >>
57 endobj 54 endobj
58 % Right child for Dests NameTree 55 % Root bookmark
59 {{object 12 0}} <<
60 /Names [
61 (WrongKey) <</Fail [10 /FitH]>>
62 (WrongType) /NameNotAllowedHere
63 ]
64 >>
65 endobj
66 % Old-style top-level Dests dictionary. Note that FirstAlternate
67 % intentionally references non-exisstant page 11 and LastAlternate
68 % intentionally references non-existant object 999.
69 {{object 14 0}} << 56 {{object 14 0}} <<
70 /FirstAlternate [11 /XYZ 200 400 800] 57 /Type /Outlines
71 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>> 58 /First 10 0 R
59 /Last 11 0 R
60 /Count 2
72 >> 61 >>
73 endobj 62 endobj
74 % Font resource. 63 % Font resource.
75 {{object 15 0}} << 64 {{object 15 0}} <<
76 /Type /Font 65 /Type /Font
77 /Subtype /Type1 66 /Subtype /Type1
78 /BaseFont /Arial 67 /BaseFont /Arial
79 >> 68 >>
80 endobj 69 endobj
81 % Content for page 0. 70 % Content for page 0.
(...skipping 18 matching lines...) Expand all
100 ET 89 ET
101 endstream 90 endstream
102 endobj 91 endobj
103 {{xref}} 92 {{xref}}
104 trailer << 93 trailer <<
105 /Size 6 94 /Size 6
106 /Root 1 0 R 95 /Root 1 0 R
107 >> 96 >>
108 {{startxref}} 97 {{startxref}}
109 %%EOF 98 %%EOF
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfdoc_embeddertest.cpp ('k') | testing/resources/bookmarks.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698