Skip Menu |

This queue is for tickets about the PDF-Tiny CPAN distribution.

Report information
The Basics
Id: 120836
Status: resolved
Priority: 0/
Queue: PDF-Tiny

People
Owner: Nobody in particular
Requestors: pali [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Download out.pdf
application/pdf 11.3k

Message body not shown because it is not plain text.

Message body is not shown because sender requested not to inline it.

On Sat Apr 01 19:45:40 2017, PALI wrote: Show quoted text
> 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.
Thank you. I have applied your patch and released version 0.08. (I am a little surprised to see someone else using this module already, considering I just wrote it.)