Add 'hidden' annotations tests pdfium/annots/
Originally https://codereview.chromium.org/2239713003/
Patch by tonikitoo@igalia.com
CL adds hidden annotation variants to the following existing
annotation tests:
(pdfium/annots/):
- annotation_circle_hidden.pdf
- annotation_ellipse_hidden.pdf
- annotation_highlight_hidden.pdf
- annotation_ink_hidden.pdf
- annotation_square_hidden.pdf
- annotation_squiggly_hidden.pdf
- annotation_strikeout_hidden.pdf
- annotation_underline_hidden.pdf
(fx/mulobj/new/text_markup/):
- new_textmarkup1_hidden.pdf
- new_textmarkup1_hidden.pdf.0.png
- new_textmarkup2_hidden.pdf
- new_textmarkup2_hidden.pdf.0.png
- new_textmarkup4_hidden.pdf
- new_textmarkup4_hidden.pdf.0.png
- new_textmarkup5_hidden.pdf
- new_textmarkup5_hidden.pdf.0.png
- new_textmarkup7_hidden.pdf
- new_textmarkup7_hidden.pdf.0.png
- new_textmarkup8_hidden.pdf
- new_textmarkup8_hidden.pdf.0.png
This is how each pdf test being added was generated:
1) uncompressed the PDF file with qpdf:
$ qpdf --stream-data=uncompress {pdf_file}.pdf {pdf_file}_hidden.pdf
2) editted {pdf_file}_hidden.pdf source manually changing
its "/F 4" entry to "/F 2".
3) compress {pdf_file}_hidden.pdf back with qpdf:
$ qpdf --stream-data=compress {pdf_file}_hidden.pdf {pdf_file}_hidden.pdf
Also, note that each PDF file added is accompanied of its own
*correct* expected result (png).
The behavior fix on PDFium side is happening in [1].
[1] https://codereview.chromium.org/2239853002
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/2250543003 .
28 files changed