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

Side by Side Diff: testing/resources/pixel/endobj12.in

Issue 1232803005: Add test case for parsing endobj keywords. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Added a few more tests. Created 5 years, 5 months 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 unified diff | Download patch
OLDNEW
1 {{header}} 1 {{header}}
2 {{object 1 0}} << 2 {{object 1 0}} <<
3 /Type /Catalog 3 /Type /Catalog
4 /Pages 2 0 R 4 /Pages 2 0 R
5 >> 5 >>
6 {{object 2 0}} << 6 {{object 2 0}} <<
7 /Type /Pages 7 /Type /Pages
8 /MediaBox [ 0 0 200 200 ] 8 /MediaBox [ 0 0 200 200 ]
9 /Count 1 9 /Count 1
10 /Kids [ 3 0 R ] 10 /Kids [ 3 0 R ]
(...skipping 16 matching lines...) Expand all
27 /Subtype /Type1 27 /Subtype /Type1
28 /BaseFont /Times-Roman 28 /BaseFont /Times-Roman
29 >> 29 >>
30 endobj 30 endobj
31 {{object 5 0}} << 31 {{object 5 0}} <<
32 /Type /Font 32 /Type /Font
33 /Subtype /Type1 33 /Subtype /Type1
34 /BaseFont /Helvetica 34 /BaseFont /Helvetica
35 >> 35 >>
36 endobj 36 endobj
37 % Case 11:
38 % /Length points well past intended end of stream, with embedded keywords.
39 % Both should render as text.
37 {{object 6 0}} << 40 {{object 6 0}} <<
41 /Length 210
38 >> 42 >>
39 stream 43 stream
40 BT 44 BT
41 20 50 Td 45 20 50 Td
42 /F1 12 Tf 46 /F1 12 Tf
43 (Hello, world!) Tj 47 (endobj is text) Tj
44 0 50 Td 48 0 50 Td
45 /F2 16 Tf 49 /F2 13 Tf
46 (Goodbye, world!) Tj 50 (endstream is text per /Length) Tj
47 ET 51 ET
48 endstream 52 endstream
49 endobj 53 endobj
54
55 % blah blah blah.
56 % blah blah blah.
57 % blah blah blah.
58
50 {{xref}} 59 {{xref}}
51 trailer << 60 trailer <<
52 /Size 6 61 /Size 6
53 /Root 1 0 R 62 /Root 1 0 R
54 >> 63 >>
55 {{startxref}} 64 {{startxref}}
56 %%EOF 65 %%EOF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698