Subject: | PDF::Tiny dies on "The filter is not supported" |
Date: | Sun, 2 Apr 2017 01:09:50 +0200 |
To: | bug-PDF-Tiny [...] rt.cpan.org |
From: | pali [...] cpan.org |
PDF::Tiny is unable to open PDF files generated by pdftex which is later
uncompressed by qpdf. Problematic PDF is attached.
Steps to generate PDF file:
$ pdftex '\relax Test\end'
$ qpdf --stream-data=uncompress texput.pdf out.pdf
$ perl -MPDF::Tiny -e 'PDF::Tiny->new("out.pdf")'
The filter is not supported at lib/PDF/Tiny.pm line 119.
Problem is in autovivification of reference to perl array and fact that
PDF stream does not have to have any /Filter. Undef is then stored into
@filters.
Attached patch fixes this problem.
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.