Skip Menu |

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

Report information
The Basics
Id: 38579
Status: open
Priority: 0/
Queue: PDF-Extract

People
Owner: Nobody in particular
Requestors: paul [...] xk7.net
Cc:
AdminCc:

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



Subject: PDF::Extract does not work with warnings enabled
Date: Tue, 19 Aug 2008 11:47:42 +0100
To: bug-PDF-Extract [...] rt.cpan.org
From: Paul Waring <paul [...] xk7.net>
PROBLEM: Perl throws uninitialised variables errors when using the module PDF::Extract with warnings enabled. EXAMPLE SCRIPT: #!/usr/bin/perl -w use strict; use PDF::Extract; my $pdf = new PDF::Extract(); $pdf->savePDFExtract(PDFPages => "3", PDFDoc => "./thesis.pdf", PDFCache => "./"); EXPECTED RESULTS: PDF file generated, no errors. ACTUAL OUTPUT: PDF file is generated, but with the following errors: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.8/PDF/Extract.pm line 658. Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.8/PDF/Extract.pm line 658. SYSTEM DETAILS: uname -a Linux rpc354 2.6.23.15-80.fc7 #1 SMP Sun Feb 10 17:29:10 EST 2008 i686 i686 i386 GNU/Linux perl -v This is perl, v5.8.8 built for i386-linux-thread-multi PDF::Extract version 3.03 (latest from 'install PDF::Extract' in CPAN) FIX: Removing -w from the shebang line means the script runs without errors, but the module needs to be patched so that it can run with warnings enabled, otherwise scripts using the module also cannot use warnings. -- Paul Waring http://www.pwaring.com
Subject: RE: [rt.cpan.org #38579] PDF::Extract does not work with warnings enabled
Date: Thu, 1 Jan 2009 10:47:24 +1100
To: <bug-PDF-Extract [...] rt.cpan.org>, <info [...] pwaring.com>, <paul [...] xk7.net>
From: "Noel Sharrock" <noel [...] lgmedia.com.au>
Hi Paul, Bug Fixed. (defined $gd) ? "$obj 0 R$gd" : "$obj 0 R"; # Reported bugs 38579 & 41628 - $gd might not be defined. Suggested fix by Patrick Bourdon to avoid warnings Noel Sharrock. PS. Happy New Year. Show quoted text
-----Original Message----- From: Paul Waring via RT [mailto:bug-PDF-Extract@rt.cpan.org] Sent: Tuesday, 19 August 2008 8:49 PM To: undisclosed-recipients: Subject: [rt.cpan.org #38579] PDF::Extract does not work with warnings enabled Tue Aug 19 06:48:52 2008: Request 38579 was acted upon. Transaction: Ticket created by paul@xk7.net Queue: PDF-Extract Subject: PDF::Extract does not work with warnings enabled Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: paul@xk7.net Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=38579 > PROBLEM: Perl throws uninitialised variables errors when using the module PDF::Extract with warnings enabled. EXAMPLE SCRIPT: #!/usr/bin/perl -w use strict; use PDF::Extract; my $pdf = new PDF::Extract(); $pdf->savePDFExtract(PDFPages => "3", PDFDoc => "./thesis.pdf", PDFCache => "./"); EXPECTED RESULTS: PDF file generated, no errors. ACTUAL OUTPUT: PDF file is generated, but with the following errors: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.8/PDF/Extract.pm line 658. Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.8/PDF/Extract.pm line 658. SYSTEM DETAILS: uname -a Linux rpc354 2.6.23.15-80.fc7 #1 SMP Sun Feb 10 17:29:10 EST 2008 i686 i686 i386 GNU/Linux perl -v This is perl, v5.8.8 built for i386-linux-thread-multi PDF::Extract version 3.03 (latest from 'install PDF::Extract' in CPAN) FIX: Removing -w from the shebang line means the script runs without errors, but the module needs to be patched so that it can run with warnings enabled, otherwise scripts using the module also cannot use warnings. -- Paul Waring http://www.pwaring.com