summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2015-11-04 16:57:32 -0800
committerWei Li <weili@chromium.org>2015-11-04 16:57:32 -0800
commit4544797e8998a31e7bc3f5439a5982f7f66dff26 (patch)
tree8bbc05a552c0e4b1bd089df746cb13d53ebe91e6 /testing/resources
parent955930dce7e4b5c764cdd34b134baea4207de523 (diff)
downloadpdfium-4544797e8998a31e7bc3f5439a5982f7f66dff26.tar.xz
Add base test for RebuildCrossRef function.
This tests whether RebuildCrossRef could handle well-formatted pdf file. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1409013005 .
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/parser_rebuildxref_correct.pdf55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/resources/parser_rebuildxref_correct.pdf b/testing/resources/parser_rebuildxref_correct.pdf
new file mode 100644
index 0000000000..5e4f60bc38
--- /dev/null
+++ b/testing/resources/parser_rebuildxref_correct.pdf
@@ -0,0 +1,55 @@
+%PDF-1.7
+% ò¤ô
+1 0 obj <<
+ /Type /Catalog
+ /Pages 2 2 R
+>>
+2 2 obj <<
+ /Type /Pages
+ /MediaBox [ 0 0 200 200 ]
+ /Count 1
+ /Kids [ 3 4 R ]
+>>
+endobj
+3 4 obj <<
+ /Type /Page
+ /Parent 2 2 R
+ /Resources <<
+ /Font <<
+ /F1 4 6 R
+ /F2 5 8 R
+ >>
+ >>
+ /Contents 6 0 R
+>>
+endobj
+4 6 obj <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Times-Roman
+>>
+endobj
+5 8 obj <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+6 0 obj <<
+>>
+stream
+BT
+20 50 Td
+/F1 12 Tf
+(Hello, world!) Tj
+0 50 Td
+/F2 16 Tf
+(Goodbye, world!) Tj
+ET
+endstream
+endobj
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+%%EOF