Skip Menu |

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

Report information
The Basics
Id: 83185
Status: stalled
Priority: 0/
Queue: PDF-Reuse

People
Owner: cnighs [...] cpan.org
Requestors: jason [...] dickson.st
Cc:
AdminCc:

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



Subject: Argument "4d" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm
Hi, I have a PDF made from LaTeX and PDFLaTeX that seems to break PDF-Reuse. I have made a test case that shows it working and not working. files included. Let me know if you need any more info? Thanks, Jason Perl version 5.14.2 The error it produces is: Argument "4d" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/crossrefObj.al) line 4314. Argument "5b" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/crossrefObj.al) line 4314. Argument "6a" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/crossrefObj.al) line 4314. Argument "6a" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/crossrefObj.al) line 4314. Argument "a0" isn't numeric in numeric eq (==) at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/crossrefObj.al) line 4314. Use of uninitialized value within %PDF::Reuse::oldObject in array dereference at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/getObject.al) line 4433. Use of uninitialized value within %PDF::Reuse::unZipped in concatenation (.) or string at blib/lib/PDF/Reuse.pm (autosplit into blib/lib/auto/PDF/Reuse/getObject.al) line 4484. An error occurred at test-pdf-reuse.pl line 20 Didn't find pages More information might be found in error.log at test-pdf-reuse.pl line 20
Subject: test-pdf-reuse.pl
#!/usr/bin/perl -w use warnings; use strict; use PDF::Reuse; prDocDir("."); prFile("test-save-works.pdf"); prDoc( { file => "testpdf-works.pdf", first => 1, last => 1}); prEnd(); #file has now been save to disk print "finished works\n"; prDocDir("."); prFile("test-save-breaks.pdf"); prDoc( { file => "testpdf-breaks.pdf", first => 1, last => 1}); prEnd(); #file has now been save to disk print "finished breaks\n";
Subject: test-save-works.pdf
Download test-save-works.pdf
application/pdf 16.7k

Message body not shown because it is not plain text.

Subject: test-save-breaks.pdf
Download test-save-breaks.pdf
application/pdf 546b

Message body not shown because it is not plain text.

Subject: testpdf-local.tex
Download testpdf-local.tex
application/octet-stream 1.5k

Message body not shown because it is not plain text.

From: jason [...] dickson.st
I think it might be to do with the PDF version. I found that one PDF was made before I did an upgrade to latex and one was made after. the former being PDF v1.4 the latter v1.5 I did try forcing the version to 1.4 in PDFLatex but still got the same error.
The test case seems to be missing a key file: testpdf-works.pdf Please add it if this is still an issue, otherwise this bug report will be rejected.
From: jason [...] dickson.st
On Mon Dec 08 20:47:27 2014, CNIGHS wrote: Show quoted text
> The test case seems to be missing a key file: testpdf-works.pdf > > Please add it if this is still an issue, otherwise this bug report > will be rejected.
Hi, sorry about that. Here is the file.
Subject: testpdf-works.pdf
Download testpdf-works.pdf
application/pdf 18.8k

Message body not shown because it is not plain text.

This still seems to be missing a needed file to attempt duplication: $ perl test-pdf-reuse.pl finished works An error occurred at test-pdf-reuse.pl line 20. The file testpdf-breaks.pdf can't be found, aborts More information might be found in error.log at test-pdf-reuse.pl line 20.