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

Side by Side Diff: testing/resources/pixel/endobj8.pdf

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 %PDF-1.7 1 %PDF-1.7
2 % ò¤ô 2 % ò¤ô
3 1 0 obj << 3 1 0 obj <<
4 /Type /Catalog 4 /Type /Catalog
5 /Pages 2 0 R 5 /Pages 2 0 R
6 >> 6 >>
7 2 0 obj << 7 2 0 obj <<
8 /Type /Pages 8 /Type /Pages
9 /MediaBox [ 0 0 200 200 ] 9 /MediaBox [ 0 0 200 200 ]
10 /Count 1 10 /Count 1
(...skipping 17 matching lines...) Expand all
28 /Subtype /Type1 28 /Subtype /Type1
29 /BaseFont /Times-Roman 29 /BaseFont /Times-Roman
30 >> 30 >>
31 endobj 31 endobj
32 5 0 obj << 32 5 0 obj <<
33 /Type /Font 33 /Type /Font
34 /Subtype /Type1 34 /Subtype /Type1
35 /BaseFont /Helvetica 35 /BaseFont /Helvetica
36 >> 36 >>
37 endobj 37 endobj
38 % Case 8:
39 % No /Length to identify end of stream, but embedded endobj/endstream
40 % keywords to trip us up. Should only render |endobj| as text.
jun_fang 2015/07/15 18:37:48 Why isn't |endstream| rendered in this case? The e
38 6 0 obj << 41 6 0 obj <<
39 >> 42 >>
40 stream 43 stream
41 BT 44 BT
42 20 50 Td 45 20 50 Td
43 /F1 12 Tf 46 /F1 12 Tf
44 (Hello, world!) Tj 47 (endobj is text) Tj
45 0 50 Td 48 0 50 Td
46 /F2 16 Tf 49 /F2 13 Tf
47 (Goodbye, world!) Tj 50 (endstream is not text) Tj
48 ET 51 ET
49 endstream 52 endstream
50 endobj 53 endobj
51 xref 54 xref
52 0 7 55 0 7
53 0000000000 65535 f 56 0000000000 65535 f
54 0000000015 00000 n 57 0000000015 00000 n
55 0000000061 00000 n 58 0000000061 00000 n
56 0000000154 00000 n 59 0000000154 00000 n
57 0000000296 00000 n 60 0000000296 00000 n
58 0000000374 00000 n 61 0000000374 00000 n
59 0000000450 00000 n 62 0000000598 00000 n
60 trailer << 63 trailer <<
61 /Size 6 64 /Size 6
62 /Root 1 0 R 65 /Root 1 0 R
63 >> 66 >>
64 startxref 67 startxref
65 571 68 726
66 %%EOF 69 %%EOF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698