DescriptionAdd 'hidden' annotations tests
CL adds "hidden annotation" variants to the existing
annotation tests in
(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_textmarkup2_hidden.pdf
- new_textmarkup4_hidden.pdf
- new_textmarkup5_hidden.pdf
- new_textmarkup7_hidden.pdf
- new_textmarkup8_hidden.pdf
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
Patch Set 1 #Patch Set 2 : Add 'hidden' annotations tests pdfium/annots/ #Messages
Total messages: 17 (6 generated)
|