diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2015-10-28 16:28:38 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2015-10-28 16:28:38 -0400 |
commit | b85544053495270bb54b55c79124f5318737fc8b (patch) | |
tree | 7818a961b5174707214f385e8a860a41f1c6c938 /testing/resources/pixel | |
parent | cd87ff7d8b402212371c18271e3c6e487d59a226 (diff) | |
download | pdfium-b85544053495270bb54b55c79124f5318737fc8b.tar.xz |
Merge to XFA: Revert "Add test case for parsing endobj keywords."
This reverts commit 5bd88ec07e79215400777f3095c6843e0627cade.
(cherry picked from commit 97dd3fec106ac8a945e03ed1509af0a8b73da993)
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1430533003 .
Diffstat (limited to 'testing/resources/pixel')
26 files changed, 0 insertions, 789 deletions
diff --git a/testing/resources/pixel/endobj1.in b/testing/resources/pixel/endobj1.in deleted file mode 100644 index 3e7f5e6bc5..0000000000 --- a/testing/resources/pixel/endobj1.in +++ /dev/null @@ -1,60 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 1: -% /Length identifies intended end of stream, despite embedded keywords. -% Both should render as text. -{{object 6 0}} << - /Length 97 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj10.in b/testing/resources/pixel/endobj10.in deleted file mode 100644 index d89132a97c..0000000000 --- a/testing/resources/pixel/endobj10.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 10: -% /Length identifies end of stream, and embedded endstream/endobj -% keyword to trip us up, but missing endstream keyword. -{{object 6 0}} << - /Length 97 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endstream is not text) Tj -0 50 Td -/F2 13 Tf -(endobj is not text) Tj -ET -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj10_expected.pdf.0.png b/testing/resources/pixel/endobj10_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj10_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj11.in b/testing/resources/pixel/endobj11.in deleted file mode 100644 index 6bccbe5f0e..0000000000 --- a/testing/resources/pixel/endobj11.in +++ /dev/null @@ -1,65 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 11: -% /Length points past intended end of stream, with embedded keywords. -% Both should render as text. -{{object 6 0}} << - /Length 128 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj - -% blah blah blah. -% blah blah blah. -% blah blah blah. - -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj11_expected.pdf.0.png b/testing/resources/pixel/endobj11_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj11_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj12.in b/testing/resources/pixel/endobj12.in deleted file mode 100644 index 1a89b31650..0000000000 --- a/testing/resources/pixel/endobj12.in +++ /dev/null @@ -1,65 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 11: -% /Length points well past intended end of stream, with embedded keywords. -% Both should render as text. -{{object 6 0}} << - /Length 210 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj - -% blah blah blah. -% blah blah blah. -% blah blah blah. - -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj12_expected.pdf.0.png b/testing/resources/pixel/endobj12_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj12_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj13.in b/testing/resources/pixel/endobj13.in deleted file mode 100644 index 81623a2b03..0000000000 --- a/testing/resources/pixel/endobj13.in +++ /dev/null @@ -1,65 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 11: -% /Length points well past EOF, with embedded keywords. -% Both should render as text. -{{object 6 0}} << - /Length 1000 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj - -% blah blah blah. -% blah blah blah. -% blah blah blah. - -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj13_expected.pdf.0.png b/testing/resources/pixel/endobj13_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj13_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj1_expected.pdf.0.png b/testing/resources/pixel/endobj1_expected.pdf.0.png Binary files differdeleted file mode 100644 index a044bb0c37..0000000000 --- a/testing/resources/pixel/endobj1_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj2.in b/testing/resources/pixel/endobj2.in deleted file mode 100644 index 341fe7edb3..0000000000 --- a/testing/resources/pixel/endobj2.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 4: -% /Length identifies intended end of stream, but whitespace rather than -% newline following the stream keyword. -{{object 6 0}} << - /Length 97 ->> -stream BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj2_expected.pdf.0.png b/testing/resources/pixel/endobj2_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj2_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj3.in b/testing/resources/pixel/endobj3.in deleted file mode 100644 index 11f5a99480..0000000000 --- a/testing/resources/pixel/endobj3.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 3: -% /Length identifies intended end of stream, but whitespace rather than -% newline following the endstream keyword. -{{object 6 0}} << - /Length 97 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj3_expected.pdf.0.png b/testing/resources/pixel/endobj3_expected.pdf.0.png Binary files differdeleted file mode 100644 index a044bb0c37..0000000000 --- a/testing/resources/pixel/endobj3_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj4.in b/testing/resources/pixel/endobj4.in deleted file mode 100644 index a49a5c2775..0000000000 --- a/testing/resources/pixel/endobj4.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 5: -% /Length identifies intended end of stream, but whitespace rather than -% newline following the endobj keyword. -{{object 6 0}} << - /Length 97 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endstream -endobj {{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj4_expected.pdf.0.png b/testing/resources/pixel/endobj4_expected.pdf.0.png Binary files differdeleted file mode 100644 index a044bb0c37..0000000000 --- a/testing/resources/pixel/endobj4_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj5.in b/testing/resources/pixel/endobj5.in deleted file mode 100644 index dce87954ec..0000000000 --- a/testing/resources/pixel/endobj5.in +++ /dev/null @@ -1,60 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 5: -% /Length incorrectly identifies middle of stream, no confusing -% keywords to trip us up. -{{object 6 0}} << - /Length 50 ->> -stream -BT -20 50 Td -/F1 12 Tf -(xxxxxx is text) Tj -0 50 Td -/F2 13 Tf -(yyyyyyyyy after bad /Length) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj5_expected.pdf.0.png b/testing/resources/pixel/endobj5_expected.pdf.0.png Binary files differdeleted file mode 100644 index 87f2a9b32d..0000000000 --- a/testing/resources/pixel/endobj5_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj6.in b/testing/resources/pixel/endobj6.in deleted file mode 100644 index 53f546f519..0000000000 --- a/testing/resources/pixel/endobj6.in +++ /dev/null @@ -1,60 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 6: -% /Length incorrectly identifies middle of stream, and confusing -% keywords to trip us up. Should only render |endobj| as text. -{{object 6 0}} << - /Length 50 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream after bad /Length) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj6_expected.pdf.0.png b/testing/resources/pixel/endobj6_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj6_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj7.in b/testing/resources/pixel/endobj7.in deleted file mode 100644 index 747514fa80..0000000000 --- a/testing/resources/pixel/endobj7.in +++ /dev/null @@ -1,60 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 7: -% /Length identifies intended end of stream, but endstream/endobj -% keywords swapped. Should render |endobj| and |endstream| as text. -{{object 6 0}} << - /Length 97 ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is text per /Length) Tj -ET -endobj -endstream -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj7_expected.pdf.0.png b/testing/resources/pixel/endobj7_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj7_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj8.in b/testing/resources/pixel/endobj8.in deleted file mode 100644 index 66892e239a..0000000000 --- a/testing/resources/pixel/endobj8.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 8: -% No /Length to identify end of stream, but embedded endobj/endstream -% keywords to trip us up. Should only render |endobj| as text. -{{object 6 0}} << ->> -stream -BT -20 50 Td -/F1 12 Tf -(endobj is text) Tj -0 50 Td -/F2 13 Tf -(endstream is not text) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj8_expected.pdf.0.png b/testing/resources/pixel/endobj8_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj8_expected.pdf.0.png +++ /dev/null diff --git a/testing/resources/pixel/endobj9.in b/testing/resources/pixel/endobj9.in deleted file mode 100644 index fb156faa9f..0000000000 --- a/testing/resources/pixel/endobj9.in +++ /dev/null @@ -1,59 +0,0 @@ -{{header}} -{{object 1 0}} << - /Type /Catalog - /Pages 2 0 R ->> -{{object 2 0}} << - /Type /Pages - /MediaBox [ 0 0 200 200 ] - /Count 1 - /Kids [ 3 0 R ] ->> -endobj -{{object 3 0}} << - /Type /Page - /Parent 2 0 R - /Resources << - /Font << - /F1 4 0 R - /F2 5 0 R - >> - >> - /Contents 6 0 R ->> -endobj -{{object 4 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Times-Roman ->> -endobj -{{object 5 0}} << - /Type /Font - /Subtype /Type1 - /BaseFont /Helvetica ->> -endobj -% Case 9: -% No /Length to identify end of stream, but embedded endstream/endobj -% keyword to trip us up. Should render nothing as text. -{{object 6 0}} << ->> -stream -BT -20 50 Td -/F1 12 Tf -(endstream is not text) Tj -0 50 Td -/F2 13 Tf -(endobj is not text) Tj -ET -endstream -endobj -{{xref}} -trailer << - /Size 6 - /Root 1 0 R ->> -{{startxref}} -%%EOF diff --git a/testing/resources/pixel/endobj9_expected.pdf.0.png b/testing/resources/pixel/endobj9_expected.pdf.0.png Binary files differdeleted file mode 100644 index 3edcc2db89..0000000000 --- a/testing/resources/pixel/endobj9_expected.pdf.0.png +++ /dev/null |