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

Unified Diff: testing/resources/parser_rebuildxref_error_notrailer.pdf

Issue 1476163002: Add basic checking for RebuildCrossRef (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: not checking root obj Created 5 years 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 | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/parser_rebuildxref_error_notrailer.pdf
diff --git a/testing/resources/parser_rebuildxref_error_notrailer.pdf b/testing/resources/parser_rebuildxref_error_notrailer.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..93f56fba9b2d4f78c8350ec496fbff4db72fd2de
--- /dev/null
+++ b/testing/resources/parser_rebuildxref_error_notrailer.pdf
@@ -0,0 +1,51 @@
+%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
+%%EOF
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698