diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-10-01 20:00:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-01 20:00:27 +0000 |
commit | d2c654bed86af90a3e825bac1e06340d22a779ce (patch) | |
tree | e9cf7b0b07eba3646aa408f89e4cb1914b34263a /testing | |
parent | 4e0ea88aa96380f5262c82855a332dc8d81e65a8 (diff) | |
download | pdfium-d2c654bed86af90a3e825bac1e06340d22a779ce.tar.xz |
Add XFA TIFF LZW pixel test
This adds a test case where a simple red square TIFF, using LZW
compression, image is embedded into an XFA document. This exercises
that <image> tags work correctly and that end to end rendering of LZW
TIFFs is working.
Change-Id: Iecaef68e7eb4b1e822737f3faf4837699261e28b
Reviewed-on: https://pdfium-review.googlesource.com/43230
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image.in | 76 | ||||
-rw-r--r-- | testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image_expected.pdf.0.png | bin | 0 -> 3776 bytes |
2 files changed, 76 insertions, 0 deletions
diff --git a/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image.in b/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image.in new file mode 100644 index 0000000000..b894a56e03 --- /dev/null +++ b/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image.in @@ -0,0 +1,76 @@ +{{header}} + +%% Original object ID: 24 0 +{{object 1 0}} +<< + /AcroForm 2 0 R + /Extensions << + /ADBE << + /BaseVersion /1.7 + /ExtensionLevel 8 + >> + >> + /NeedsRendering true + /Type /Catalog +>> +endobj + +%% Original object ID: 32 0 +{{object 2 0}} +<< + /XFA [ + (preamble) + 3 0 R + (config) + 4 0 R + (template) + 5 0 R + (localeSet) + 6 0 R + (postamble) + 7 0 R + ] +>> +endobj + +{{xfapreamble 3 0}} +{{xfaconfig 4 0}} + +{{object 5 0}} +<< + {{streamlen}} +>> +stream +<template xmlns="http://www.xfa.org/schema/xfa-template/3.3/"> + <subform name="form1" layout="tb" locale="en_US" restoreState="auto"> + <pageSet> + <pageArea name="Page1" id="Page1"> + <contentArea x="18pt" y="18pt" w="612pt" h="792pt"/> + <medium stock="default" short="612pt" long="792pt"/> + </pageArea> + </pageSet> + <subform w="576pt" h="756pt" name="Page1"> + <field name="ImageField1" w="250pt" h="250pt"> + <value> + <image contentType="image/tiff">SUkqAFoHAACAP8AQOCQWDQeEQmFQuGQ2HQ+IRGJROKRWLReMRmNRuOR2PR+QSGRSOSSWTSeEwKUSuWS2XS+YTGZTOaTWbTecTmCyqdT2fT+gUGhUOiUWjUeLTykUumU2nU+oVGpVOQUqqVesVmtVuuV2vRGrV+xWOyWWzWe0R2w2m2W23W+4XGi2u5XW7Xe8Xm9Q+6Xu/X/AYHBVe+4PDYfEYnFSzC4vHY/IZHJTvJ5XLZfMX7G5nOZ3PZ+oZvQaPSaXTTLRafVavWa2k67YbHZbOFanabfcbnJbbdb3fb+97zgcPicWzcLjcnlcuo8jmc/odGfc7pdXrdeV9Tsdvud2MdrveHxeOD+Dyef0djzen2e3lev3fH5br4fP7ffW/X8fv+Z/9P7AEAt3AUCQK1b/wNBMFLzBEFwdB62wbCEJwor8JQrDEMqnC8NQ7Dyjw5D8RRGnsQxJE8UJjE0UxZFqSxXF0YxkjcYRnG0brBHEdR2l8ax5H8dx9IEhxnIUiSPFkjSRJcRyVJknw1J0oSnCcpSpK8FStLEtwFLUuS+/cvTBMb5TFMkzvTM00TW8U1TZN7tzdOE5ulOU6Tu5c7TxPbiT1Pk/t7P1AUG2lBUJQ7XUNRFFtPRVGUe0FHUhSbMoCIA/wBA4JBYNB4RCYVC4ZDYdD4hEYlE4pFYtF4xGY1G45HY9H5BIZFI5JJZNJ4TApRK5ZLZdL5hMZlM5pNZtN5xOYLKp1PZ9P6BQaFQ6JRaNR4tPKRS6ZTadT6hUalU5BSqpV6xWa1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F9TcXVhcmVfbHp3LnRpZmYA</image> + </value> + <border> + <edge thickness="0.254mm"/> + <corner thickness="0.254mm"/> + </border> + </field> + </subform> + </subform> +</template> + +endstream +endobj + +{{xfalocale 6 0}} + +{{xfapostamble 7 0}} + +{{xref}} +{{trailer}} +{{startxref}} +%%EOF diff --git a/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image_expected.pdf.0.png Binary files differnew file mode 100644 index 0000000000..5204fd7a2e --- /dev/null +++ b/testing/resources/pixel/xfa_specific/xfa_tiff_lzw_image_expected.pdf.0.png |