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

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

Issue 1499433002: fix for stream object reading (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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
(Empty)
1 {{header}}
2 {{object 1 0}} <<
3 /Type /Catalog
4 /Pages 2 0 R
5 >>
6 {{object 2 0}} <<
7 /Type /Pages
8 /MediaBox [ 0 0 200 200 ]
9 /Count 1
10 /Kids [ 3 0 R ]
11 >>
12 endobj
13 {{object 3 0}} <<
14 /Type /Page
15 /Parent 2 0 R
16 /Resources <<
17 /Font <<
18 /F1 4 0 R
19 /F2 5 0 R
20 >>
21 >>
22 /Contents 6 0 R
23 >>
24 endobj
25 {{object 4 0}} <<
26 /Type /Font
27 /Subtype /Type1
28 /BaseFont /Times-Roman
29 >>
30 endobj
31 {{object 5 0}} <<
32 /Type /Font
33 /Subtype /Type1
34 /BaseFont /Helvetica
35 >>
36 endobj
37 % Case 1:
38 % Earlier version of PDF doesn't require EOL before 'endstream'. If the length
39 % of bytes end before 'endstream', we should take it.
40 {{object 6 0}} <<
41 /Length 107
42 >>
43 stream
44 BT
45 20 50 Td
46 /F1 12 Tf
47 (endobj is text) Tj
48 endstream
49 0 50 Td
50 /F2 13 Tf
51 (endstream is text per /Length) Tj
52 ETendstream
53 endobj
54 {{xref}}
55 trailer <<
56 /Size 6
57 /Root 1 0 R
58 >>
59 {{startxref}}
60 %%EOF
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp ('k') | testing/resources/pixel/bug_551258_1_expected.pdf.0.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698