Add fixed jetman_std test case The current file cannot be opened with normal PDF viewers. Fixes: - The page tree node Kids array should contain indirect references to the pages, as stated in section 3.6.2 of pdf spec 1.7. In this case, there is a single page. Its description was moved to a separate obj. - The page tree node should contain a Count key, in this case 1. This can also be seen from section 3.6.2. - startref is a typo, and should be startxref. Original jetman_std test case left intact. TEST=file can now be opened with other pdf viewers. pdfium_test can still render the pdf file. R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/2419793004 .
diff --git a/fx/other/jetman_std_fixed.pdf b/fx/other/jetman_std_fixed.pdf new file mode 100644 index 0000000..e398881 --- /dev/null +++ b/fx/other/jetman_std_fixed.pdf
@@ -0,0 +1,10 @@ +%PDF-1.5 +1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj 2 0 obj<</Type/Pages/Kids [4 0 R] /Count 1>>endobj 4 0 obj<</Type/Page/Rotate 180/Parent 2 0 R/Resources<</Font<</F<</Type/Font/Subtype/Type1/BaseFont/Helvetica>>>>>>/Contents 3 0 R/Count 1/MediaBox [0 0 500 500]>> endobj 3 0 obj<</Length 42>>stream +BT/F 10 Tf 100 100 TD(Hello World!)Tj ET +endstream +endobj xref 0 4 +0000000000 65535 f +0000000010 00000 n +0000000053 00000 n +0000000197 00000 n +trailer<</Size 4/Root 1 0 R>>startxref 286%%EOF \ No newline at end of file
diff --git a/fx/other/jetman_std_fixed_expected.pdf.0.png b/fx/other/jetman_std_fixed_expected.pdf.0.png new file mode 100644 index 0000000..807a0c1 --- /dev/null +++ b/fx/other/jetman_std_fixed_expected.pdf.0.png Binary files differ