Skip Menu |

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

Report information
The Basics
Id: 120410
Status: patched
Priority: 0/
Queue: PDF-Reuse

People
Owner: cnighs [...] cpan.org
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

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



Subject: Cannot import some PDFs
I ran this command to extract a single page from a PDF file: $ perl -MPDF::Reuse -e 'prFile("out.pdf"); prSinglePage("4pages.pdf", 1); prEnd();' Attached are the input file (4pages.pdf) and the output file (out.pdf). The output file is corrupt. It seems PDF::Reuse cannot handle PDFs that use line breaks that way. I haven’t got to the bottom of it.
Subject: 4pages.pdf
Download 4pages.pdf
application/pdf 8.1k

Message body not shown because it is not plain text.

Subject: out.pdf
Download out.pdf
application/pdf 6.1k

Message body not shown because it is not plain text.

On Mon Feb 27 02:24:01 2017, SPROUT wrote: Show quoted text
> I ran this command to extract a single page from a PDF file: > > $ perl -MPDF::Reuse -e 'prFile("out.pdf"); prSinglePage("4pages.pdf", > 1); prEnd();' > > Attached are the input file (4pages.pdf) and the output file > (out.pdf). The output file is corrupt. It seems PDF::Reuse cannot > handle PDFs that use line breaks that way. I haven’t got to the > bottom of it.
This one is related to #120346, but has specifically to do with whitespace in ‘1 0 obj’ rather than ‘1 0 R’. The attached patch implements my whitespace suggestion and fixes both bugs.
Subject: open_BUr8dTSp.txt

Message body is not shown because it is too large.

On Tue Feb 28 22:55:00 2017, SPROUT wrote: Show quoted text
> On Mon Feb 27 02:24:01 2017, SPROUT wrote:
> > I ran this command to extract a single page from a PDF file: > > > > $ perl -MPDF::Reuse -e 'prFile("out.pdf"); prSinglePage("4pages.pdf", > > 1); prEnd();' > > > > Attached are the input file (4pages.pdf) and the output file > > (out.pdf). The output file is corrupt. It seems PDF::Reuse cannot > > handle PDFs that use line breaks that way. I haven’t got to the > > bottom of it.
> > This one is related to #120346, but has specifically to do with > whitespace in ‘1 0 obj’ rather than ‘1 0 R’. > > The attached patch implements my whitespace suggestion and fixes both > bugs.
Patched: https://github.com/cnighswonger/PDF-Reuse/commit/deb59c3ef4d4f59778c771f78167222c895bfb03