summaryrefslogtreecommitdiff
path: root/testing/resources/bookmarks.pdf
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-14 09:26:32 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-14 09:26:32 -0700
commit758ae14e113c07285126274577d7a5cab559fa65 (patch)
treef8725d73309e87d59e5279db86eae70aedfe922e /testing/resources/bookmarks.pdf
parent468e5896007c7fe7bb283c0161d807a76f403308 (diff)
downloadpdfium-758ae14e113c07285126274577d7a5cab559fa65.tar.xz
Merge to XFA: Add unit test for top-level bookmarks.
Original Review URL: https://codereview.chromium.org/1404723002 . (cherry picked from commit 7d54a9f70f977ce9b72959ef55dc6300713ccafe) R=thestig@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1404193002 .
Diffstat (limited to 'testing/resources/bookmarks.pdf')
-rw-r--r--testing/resources/bookmarks.pdf124
1 files changed, 124 insertions, 0 deletions
diff --git a/testing/resources/bookmarks.pdf b/testing/resources/bookmarks.pdf
new file mode 100644
index 0000000000..824ce78db7
--- /dev/null
+++ b/testing/resources/bookmarks.pdf
@@ -0,0 +1,124 @@
+%PDF-1.7
+% ò¤ô
+1 0 obj <<
+ /Type /Catalog
+ /Pages 2 0 R
+ /Outlines 14 0 R
+>>
+endobj
+2 0 obj <<
+ /Type /Pages
+ /Count 2
+ /Kids [
+ 3 0 R
+ 4 0 R
+ ]
+>>
+endobj
+% Page number 0.
+3 0 obj <<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources <<
+ /Font <</F1 15 0 R>>
+ >>
+ /Contents [21 0 R]
+ /MediaBox [0 0 612 792]
+>>
+endobj
+% Page number 1.
+4 0 obj <<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources <<
+ /Font <</F1 15 0 R>>
+ >>
+ /Contents [22 0 R]
+ /MediaBox [0 0 612 792]
+>>
+endobj
+% First bookmark
+10 0 obj <<
+ /Title (A Good Beginning)
+ /Parent 14 0 R
+ /Next 11 0 R
+ /Dest (foo)
+>>
+endobj
+% Last bookmark
+11 0 obj <<
+ /Title (A Good Ending)
+ /Parent 14 0 R
+ /Prev 10 0 R
+ /Dest (bar)
+>>
+endobj
+% Root bookmark
+14 0 obj <<
+ /Type /Outlines
+ /First 10 0 R
+ /Last 11 0 R
+ /Count 2
+>>
+endobj
+% Font resource.
+15 0 obj <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Arial
+>>
+endobj
+% Content for page 0.
+21 0 obj <<
+ /Length 0
+>>
+stream
+BT
+/F1 20 Tf
+100 600 TD (Page1)Tj
+ET
+endstream
+endobj
+% Content for page 1.
+22 0 obj <<
+ /Length 0
+>>
+stream
+BT
+/F1 20 Tf
+100 600 TD (Page2)Tj
+ET
+endstream
+endobj
+xref
+0 23
+0000000000 65535 f
+0000000015 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
+0000000000 65535 f
+0000000729 00000 n
+0000000829 00000 n
+0000000000 65535 f
+0000000000 65535 f
+0000000000 65535 f
+0000000000 65535 f
+0000000000 65535 f
+0000000924 00000 n
+0000001034 00000 n
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+startxref
+1122
+%%EOF