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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/resources/bookmarks.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/bookmarks.pdf
diff --git a/testing/resources/named_dests.pdf b/testing/resources/bookmarks.pdf
similarity index 58%
copy from testing/resources/named_dests.pdf
copy to testing/resources/bookmarks.pdf
index 2e0e5ce71d69eda4c77fdf79185dd8ab806b6c14..824ce78db7c7a0787af5538547c82f40fbb8ce41 100644
--- a/testing/resources/named_dests.pdf
+++ b/testing/resources/bookmarks.pdf
@@ -3,10 +3,7 @@
1 0 obj <<
/Type /Catalog
/Pages 2 0 R
- /Names <<
- /Dests 10 0 R
- >>
- /Dests 14 0 R
+ /Outlines 14 0 R
>>
endobj
2 0 obj <<
@@ -40,36 +37,28 @@ endobj
/MediaBox [0 0 612 792]
>>
endobj
-% Root of Dests NameTree
+% First bookmark
10 0 obj <<
- /Kids [
- 11 0 R
- 12 0 R
- ]
+ /Title (A Good Beginning)
+ /Parent 14 0 R
+ /Next 11 0 R
+ /Dest (foo)
>>
endobj
-% Left child for Dests NameTree
+% Last bookmark
11 0 obj <<
- /Names [
- (First) [1 /XYZ 0 0 1]
- (Next) <</D [4 0 R /Fit]>>
- ]
+ /Title (A Good Ending)
+ /Parent 14 0 R
+ /Prev 10 0 R
+ /Dest (bar)
>>
endobj
-% Right child for Dests NameTree
-12 0 obj <<
- /Names [
- (WrongKey) <</Fail [10 /FitH]>>
- (WrongType) /NameNotAllowedHere
- ]
->>
-endobj
-% Old-style top-level Dests dictionary. Note that FirstAlternate
-% intentionally references non-exisstant page 11 and LastAlternate
-% intentionally references non-existant object 999.
+% Root bookmark
14 0 obj <<
- /FirstAlternate [11 /XYZ 200 400 800]
- /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
+ /Type /Outlines
+ /First 10 0 R
+ /Last 11 0 R
+ /Count 2
>>
endobj
% Font resource.
@@ -105,31 +94,31 @@ xref
0 23
0000000000 65535 f
0000000015 00000 n
-0000000119 00000 n
-0000000217 00000 n
-0000000378 00000 n
+0000000087 00000 n
+0000000185 00000 n
+0000000346 00000 n
+0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
+0000000508 00000 n
+0000000620 00000 n
0000000000 65535 f
-0000000548 00000 n
-0000000638 00000 n
-0000000766 00000 n
0000000000 65535 f
-0000001060 00000 n
-0000001188 00000 n
+0000000729 00000 n
+0000000829 00000 n
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
-0000001283 00000 n
-0000001393 00000 n
+0000000924 00000 n
+0000001034 00000 n
trailer <<
/Size 6
/Root 1 0 R
>>
startxref
-1481
+1122
%%EOF
« 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