diff options
author | xlou <xlou@chromium.org> | 2018-02-06 00:11:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-06 00:11:23 +0000 |
commit | 29561e53b60c680e4f6fca9d91047952b2de7906 (patch) | |
tree | 7abfecbdf9207d35a90e762b3a7f1b457c81e126 /testing/resources/rectangles_multi_pages.in | |
parent | 6ec142da3f9cccb60a4d983ee7132c41a0798e24 (diff) | |
download | pdfium-29561e53b60c680e4f6fca9d91047952b2de7906.tar.xz |
Add rendering embeddertests for FPDF_ImportNPagesToOne.
One test is added to render the output pdf of FPDF_ImportNPagesToOne,
and check the width, height and hash value of the rendered image.
Change-Id: Idd3f953d62ecd4e85ad52a9323eb13243dc49597
Reviewed-on: https://pdfium-review.googlesource.com/25330
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/resources/rectangles_multi_pages.in')
-rw-r--r-- | testing/resources/rectangles_multi_pages.in | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/testing/resources/rectangles_multi_pages.in b/testing/resources/rectangles_multi_pages.in new file mode 100644 index 0000000000..125b8ea090 --- /dev/null +++ b/testing/resources/rectangles_multi_pages.in @@ -0,0 +1,98 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R +>> +endobj +{{object 2 0}} << + /Type /Pages + /MediaBox [ 0 0 200 250 ] + /Count 5 + /Kids [ 3 0 R 5 0 R 7 0 R 9 0 R 11 0 R ] +>> +endobj +{{object 3 0}} << + /Type /Page + /Parent 2 0 R + /Contents 4 0 R +>> +endobj +{{object 4 0}} << +>> +stream +q +1 1 0 rg +100 0 30 50 re B* +70 67 50 30 re B* +Q +endstream +endobj +{{object 5 0}} << + /Type /Page + /Parent 2 0 R + /Rotate 90 + /Contents 6 0 R +>> +endobj +{{object 6 0}} << +>> +stream +q +0 1 1 rg +100 0 30 50 re B* +70 67 50 30 re B* +Q +endstream +endobj +{{object 7 0}} << + /Type /Page + /Parent 2 0 R + /Contents 8 0 R +>> +endobj +{{object 8 0}} << +>> +stream +q +1 0 0 rg +100 0 30 50 re B* +70 67 50 30 re B* +Q +endstream +endobj +{{object 9 0}} << + /Type /Page + /Parent 2 0 R + /Contents 10 0 R +>> +{{object 10 0}} << +>> +stream +q +0 1 0 rg +100 0 30 50 re B* +100 150 50 30 re B* +Q +endstream +endobj +endobj +{{object 11 0}} << + /Type /Page + /Parent 2 0 R + /Contents 12 0 R +>> +endobj +{{object 12 0}} << +>> +stream +q +0 0 0 rg +0 90 80 60 re B* +100 150 50 30 re B* +Q +endstream +endobj +{{xref}} +{{trailer}} +{{startxref}} +%%EOF |