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

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

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 | « pdfium.gyp ('k') | testing/resources/named_dests.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 /Pages
4 /Count 1
5 /Kids [3 0 R]
6 >>
7 endobj
8 {{object 2 0}} <<
9 /Type /Catalog 3 /Type /Catalog
10 /Pages 1 0 R 4 /Pages 2 0 R
11 /Names << 5 /Names <<
12 /Dests 10 0 R 6 /Dests 10 0 R
13 >> 7 >>
14 /Dests 14 0 R 8 /Dests 14 0 R
15 >> 9 >>
16 endobj 10 endobj
11 {{object 2 0}} <<
12 /Type /Pages
13 /Count 2
14 /Kids [
15 3 0 R
16 4 0 R
17 ]
18 >>
19 endobj
20 % Page number 0.
17 {{object 3 0}} << 21 {{object 3 0}} <<
18 /Type /Page 22 /Type /Page
19 /Parent 1 0 R 23 /Parent 2 0 R
20 /Resources << 24 /Resources <<
21 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI] 25 /Font <</F1 15 0 R>>
22 >> 26 >>
27 /Contents [21 0 R]
23 /MediaBox [0 0 612 792] 28 /MediaBox [0 0 612 792]
24 /Contents 5 0 R
25 >> 29 >>
26 endobj 30 endobj
27 {{object 5 0}} << 31 % Page number 1.
28 /Length 18 32 {{object 4 0}} <<
29 >> stream 33 /Type /Page
30 1 0 0 -1 29 763 cm 34 /Parent 2 0 R
31 endstream 35 /Resources <<
36 /Font <</F1 15 0 R>>
37 >>
38 /Contents [22 0 R]
39 /MediaBox [0 0 612 792]
40 >>
32 endobj 41 endobj
33 % Root of Dests NameTree 42 % Root of Dests NameTree
34 {{object 10 0}} << 43 {{object 10 0}} <<
35 /Kids [ 44 /Kids [
36 11 0 R 45 11 0 R
37 12 0 R 46 12 0 R
38 ] 47 ]
39 >> 48 >>
40 endobj 49 endobj
41 % Left child for Dests NameTree 50 % Left child for Dests NameTree
42 {{object 11 0}} << 51 {{object 11 0}} <<
43 /Names [ 52 /Names [
44 (First) [0 /XYZ 0 0 1] 53 (First) [1 /XYZ 0 0 1]
45 (Next) <</D [4 /Fit]>> 54 (Next) <</D [4 0 R /Fit]>>
46 ] 55 ]
47 >> 56 >>
48 endobj 57 endobj
49 % Right child for Dests NameTree 58 % Right child for Dests NameTree
50 {{object 12 0}} << 59 {{object 12 0}} <<
51 /Names [ 60 /Names [
52 (WrongKey) <</Fail [10 /FitH]>> 61 (WrongKey) <</Fail [10 /FitH]>>
53 (WrongType) /NameNotAllowedHere 62 (WrongType) /NameNotAllowedHere
54 ] 63 ]
55 >> 64 >>
56 endobj 65 endobj
57 % Old-style top-level Dests dictionary. 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.
58 {{object 14 0}} << 69 {{object 14 0}} <<
59 /FirstAlternate [10 /XYZ 200 400 800] 70 /FirstAlternate [11 /XYZ 200 400 800]
60 /LastAlternate <</D [14 /XYZ 0 0 -200]>> 71 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
61 >> 72 >>
62 endobj 73 endobj
74 % Font resource.
75 {{object 15 0}} <<
76 /Type /Font
77 /Subtype /Type1
78 /BaseFont /Arial
79 >>
80 endobj
81 % Content for page 0.
82 {{object 21 0}} <<
83 /Length 0
84 >>
85 stream
86 BT
87 /F1 20 Tf
88 100 600 TD (Page1)Tj
89 ET
90 endstream
91 endobj
92 % Content for page 1.
93 {{object 22 0}} <<
94 /Length 0
95 >>
96 stream
97 BT
98 /F1 20 Tf
99 100 600 TD (Page2)Tj
100 ET
101 endstream
102 endobj
63 {{xref}} 103 {{xref}}
64 trailer << 104 trailer <<
65 /Size 6 105 /Size 6
66 /Root 2 0 R 106 /Root 1 0 R
67 >> 107 >>
68 {{startxref}} 108 {{startxref}}
69 %%EOF 109 %%EOF
OLDNEW
« no previous file with comments | « pdfium.gyp ('k') | testing/resources/named_dests.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698