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

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: 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
« 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 1 0 R
Bo Xu 2015/01/22 17:59:32 should be "/Parent 2 0 R"
20 /Resources << 24 /Resources <<
21 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI] 25 /ProcSets [/PDF /Text /ImageB /ImageC /ImageI]
22 >> 26 >>
23 /MediaBox [0 0 612 792] 27 /MediaBox [0 0 612 792]
24 /Contents 5 0 R
25 >> 28 >>
26 endobj 29 endobj
27 {{object 5 0}} << 30 % Page number 1.
28 /Length 18 31 {{object 4 0}} <<
29 >> stream 32 /Type /Page
30 1 0 0 -1 29 763 cm 33 /Parent 1 0 R
Bo Xu 2015/01/22 17:59:32 Ditto
31 endstream 34 /Resources <<
35 /ProcSets [/PDF]
36 >>
37 /MediaBox [0 0 612 792]
38 >>
32 endobj 39 endobj
33 % Root of Dests NameTree 40 % Root of Dests NameTree
34 {{object 10 0}} << 41 {{object 10 0}} <<
35 /Kids [ 42 /Kids [
36 11 0 R 43 11 0 R
37 12 0 R 44 12 0 R
38 ] 45 ]
39 >> 46 >>
40 endobj 47 endobj
41 % Left child for Dests NameTree 48 % Left child for Dests NameTree
42 {{object 11 0}} << 49 {{object 11 0}} <<
43 /Names [ 50 /Names [
44 (First) [0 /XYZ 0 0 1] 51 (First) [1 /XYZ 0 0 1]
45 (Next) <</D [4 /Fit]>> 52 (Next) <</D [4 0 R /Fit]>>
46 ] 53 ]
47 >> 54 >>
48 endobj 55 endobj
49 % Right child for Dests NameTree 56 % Right child for Dests NameTree
50 {{object 12 0}} << 57 {{object 12 0}} <<
51 /Names [ 58 /Names [
52 (WrongKey) <</Fail [10 /FitH]>> 59 (WrongKey) <</Fail [10 /FitH]>>
53 (WrongType) /NameNotAllowedHere 60 (WrongType) /NameNotAllowedHere
54 ] 61 ]
55 >> 62 >>
56 endobj 63 endobj
57 % Old-style top-level Dests dictionary. 64 % Old-style top-level Dests dictionary. Note that FirstAlternate
65 % intentionally references non-exisstant page 11 and LastAlternate
66 % intentionally references non-existant object 999.
58 {{object 14 0}} << 67 {{object 14 0}} <<
59 /FirstAlternate [10 /XYZ 200 400 800] 68 /FirstAlternate [11 /XYZ 200 400 800]
60 /LastAlternate <</D [14 /XYZ 0 0 -200]>> 69 /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
61 >> 70 >>
62 endobj 71 endobj
63 {{xref}} 72 {{xref}}
64 trailer << 73 trailer <<
65 /Size 6 74 /Size 6
66 /Root 2 0 R 75 /Root 1 0 R
67 >> 76 >>
68 {{startxref}} 77 {{startxref}}
69 %%EOF 78 %%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