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

Side by Side Diff: testing/resources/pixel/endobj3.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 3:
39 % /Length identifies intended end of stream, but whitespace rather than
40 % newline following the endstream keyword.
38 6 0 obj << 41 6 0 obj <<
42 /Length 97
39 >> 43 >>
40 stream 44 stream
41 BT 45 BT
42 20 50 Td 46 20 50 Td
43 /F1 12 Tf 47 /F1 12 Tf
44 (Hello, world!) Tj 48 (endobj is text) Tj
45 0 50 Td 49 0 50 Td
46 /F2 16 Tf 50 /F2 13 Tf
47 (Goodbye, world!) Tj 51 (endstream is text per /Length) Tj
48 ET 52 ET
49 endstream 53 endstream endobj
50 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 0000000579 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 728
66 %%EOF 69 %%EOF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698