diff options
author | Nicolas Pena <npm@chromium.org> | 2017-07-26 13:50:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-26 19:56:53 +0000 |
commit | 60bde10736fd78a2333cf1513aea779df9346b35 (patch) | |
tree | ed792453114a14937c0be4169a972e633ddf1a08 /testing/resources | |
parent | e9af3798cbee81bc0093d4be024ecb6c2ea19bd9 (diff) | |
download | pdfium-60bde10736fd78a2333cf1513aea779df9346b35.tar.xz |
Fix FPDF_RenderPageBitmapWithMatrix
This CL fixes FPDF_RenderPageBitmapWithMatrix and improves tests.
Bug: pdfium:837
Change-Id: I98f90b667cc9a50fb0e915b8a758603488b44d40
Reviewed-on: https://pdfium-review.googlesource.com/9010
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources')
-rw-r--r-- | testing/resources/rectangles.in | 38 | ||||
-rw-r--r-- | testing/resources/rectangles.pdf | 46 |
2 files changed, 84 insertions, 0 deletions
diff --git a/testing/resources/rectangles.in b/testing/resources/rectangles.in new file mode 100644 index 0000000000..ed71cf830a --- /dev/null +++ b/testing/resources/rectangles.in @@ -0,0 +1,38 @@ +{{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 + /Contents 4 0 R +>> +endobj +{{object 4 0}} << +>> +stream +q +0 0 0 rg +10 80 50 30 re B* +0 0 1 rg +70 135 50 30 re B* +0 1 0 rg +130 80 50 30 re B* +1 0 0 rg +70 25 50 30 re B* +Q +endstream +endobj +{{xref}} +{{trailer}} +{{startxref}} +%%EOF diff --git a/testing/resources/rectangles.pdf b/testing/resources/rectangles.pdf new file mode 100644 index 0000000000..718bee56d9 --- /dev/null +++ b/testing/resources/rectangles.pdf @@ -0,0 +1,46 @@ +%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 + /Contents 4 0 R +>> +endobj +4 0 obj << +>> +stream +q +0 0 0 rg +10 80 50 30 re B* +0 0 1 rg +70 135 50 30 re B* +0 1 0 rg +130 80 50 30 re B* +1 0 0 rg +70 25 50 30 re B* +Q +endstream +endobj +xref +0 5 +0000000000 65535 f +0000000015 00000 n +0000000068 00000 n +0000000161 00000 n +0000000230 00000 n +trailer<< /Root 1 0 R /Size 5 >> +startxref +382 +%%EOF |