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

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

Issue 1401923005: Loosen checking on the bytes following 'stream' (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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 17 matching lines...) Expand all
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 1: 37 % Case 1:
38 % /Length identifies intended end of stream, despite embedded keywords. 38 % A white space rather than end of line makers follows the keyword "stream".
Tom Sepez 2015/10/15 16:11:13 nit: markers
jun_fang 2015/10/16 02:41:45 Acknowledged.
39 % Both should render as text. 39 % Both should render as text.
40 {{object 6 0}} << 40 {{object 6 0}} <<
41 /Length 107 41 /Length 107
42 >> 42 >>
43 stream 43 stream
44 BT 44 BT
45 20 50 Td 45 20 50 Td
46 /F1 12 Tf 46 /F1 12 Tf
47 (endobj is text) Tj 47 (endobj is text) Tj
48 endstream 48 endstream
49 0 50 Td 49 0 50 Td
50 /F2 13 Tf 50 /F2 13 Tf
51 (endstream is text per /Length) Tj 51 (endstream is text per /Length) Tj
52 ET 52 ET
53 endstream 53 endstream
54 endobj 54 endobj
55 {{xref}} 55 {{xref}}
56 trailer << 56 trailer <<
57 /Size 6 57 /Size 6
58 /Root 1 0 R 58 /Root 1 0 R
59 >> 59 >>
60 {{startxref}} 60 {{startxref}}
61 %%EOF 61 %%EOF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698