diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-14 16:22:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-14 16:22:30 +0000 |
commit | 27cf78d88fdb44bd246cd17bcc712225388e9134 (patch) | |
tree | 437b128710bc065d70d642022483d83b9cc641ef /testing/resources | |
parent | e16ffd4fc3f286ebfaf7820351d4fee680deca88 (diff) | |
download | pdfium-27cf78d88fdb44bd246cd17bcc712225388e9134.tar.xz |
Rewrite content stream regeneration.
Loop through the dirty page objects and streams and regenerate all
streams that are dirty.
Bug: pdfium:1051
Change-Id: I837b5a7cd9542b7777e7c7ae7ac9cc75f69f30b5
Reviewed-on: https://pdfium-review.googlesource.com/34330
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources')
-rw-r--r-- | testing/resources/hello_world_split_streams.in | 63 | ||||
-rw-r--r-- | testing/resources/hello_world_split_streams.pdf | 77 |
2 files changed, 140 insertions, 0 deletions
diff --git a/testing/resources/hello_world_split_streams.in b/testing/resources/hello_world_split_streams.in new file mode 100644 index 0000000000..c7a29352f1 --- /dev/null +++ b/testing/resources/hello_world_split_streams.in @@ -0,0 +1,63 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R +>> +endobj +{{object 2 0}} << + /Type /Pages + /MediaBox [ 0 0 200 200 ] + /Count 1 + /Kids [ 3 0 R ] +>> +endobj +{{object 3 0}} << + /Type /Page + /Parent 2 0 R + /Resources << + /Font << + /F1 4 0 R + /F2 5 0 R + >> + >> + /Contents [6 0 R 7 0 R] +>> +endobj +{{object 4 0}} << + /Type /Font + /Subtype /Type1 + /BaseFont /Times-Roman +>> +endobj +{{object 5 0}} << + /Type /Font + /Subtype /Type1 + /BaseFont /Helvetica +>> +endobj +{{object 6 0}} << +>> +stream +BT +20 50 Td +/F1 12 Tf +(Hello, world!) Tj +0 50 Td +/F2 16 Tf +(Goodbye, world!) Tj +ET +endstream +endobj +{{object 7 0}} << +>> +stream +BT +20 50 Td +/F1 12 Tf +(Greetings, world!) Tj +endstream +endobj +{{xref}} +{{trailer}} +{{startxref}} +%%EOF diff --git a/testing/resources/hello_world_split_streams.pdf b/testing/resources/hello_world_split_streams.pdf new file mode 100644 index 0000000000..969fccf7de --- /dev/null +++ b/testing/resources/hello_world_split_streams.pdf @@ -0,0 +1,77 @@ +%PDF-1.7 +% ò¤ô +1 0 obj << + /Type /Catalog + /Pages 2 0 R +>> +endobj +2 0 obj << + /Type /Pages + /MediaBox [ 0 0 200 200 ] + /Count 1 + /Kids [ 3 0 R ] +>> +endobj +3 0 obj << + /Type /Page + /Parent 2 0 R + /Resources << + /Font << + /F1 4 0 R + /F2 5 0 R + >> + >> + /Contents [6 0 R 7 0 R] +>> +endobj +4 0 obj << + /Type /Font + /Subtype /Type1 + /BaseFont /Times-Roman +>> +endobj +5 0 obj << + /Type /Font + /Subtype /Type1 + /BaseFont /Helvetica +>> +endobj +6 0 obj << +>> +stream +BT +20 50 Td +/F1 12 Tf +(Hello, world!) Tj +0 50 Td +/F2 16 Tf +(Goodbye, world!) Tj +ET +endstream +endobj +7 0 obj << +>> +stream +BT +20 50 Td +/F1 12 Tf +(Greetings, world!) Tj +endstream +endobj +xref +0 8 +0000000000 65535 f +0000000015 00000 n +0000000068 00000 n +0000000161 00000 n +0000000311 00000 n +0000000389 00000 n +0000000465 00000 n +0000000586 00000 n +trailer << + /Root 1 0 R + /Size 8 +>> +startxref +669 +%%EOF |