Subject: | PDF-Extract-3.03 - proposals to suppress warning messages |
Date: | Thu, 11 Dec 2008 15:35:05 +0100 |
To: | bug-PDF-Extract [...] rt.cpan.org |
From: | Patrick BOURDON <patrick.bourdon [...] bigfoot.com> |
Hello,
My environment:
- OS: Windows XP
- Perl: ActivePerl 5.10.0 build 1004
- Module: PDF-Extract-3.03
To avoid warnings (-w), I suggest the following or equivalent changes:
535 (original) : $vars{"PDFFilename"}=$vars{"PDFSaveAs"} ? $vars{"PDFSaveAs"}.".pdf" : "$filename$fileNumber.pdf";
535 (evolution): $vars{"PDFFilename"}=$vars{"PDFSaveAs"} ? $vars{"PDFSaveAs"}.".pdf" : $filename.($fileNumber||0).'.pdf';
570 (original) : return &error("There are no pages in $filename.pdf that match '$pages' ",__FILE__,__LINE__)
570 (evolution): return &error("There are no pages in $filename.pdf that match '".((defined $pages) ? $pages : '?')."' ",__FILE__,__LINE__)
570 (original) : return &error("There are no pages in $filename.pdf that match '$pages' ",__FILE__,__LINE__)
570 (evolution): return &error("There are no pages in $filename.pdf that match '".((defined $pages) ? $pages : '?')."' ",__FILE__,__LINE__)
660 (original) : "$obj 0 R$gd";
660 (evolution): (defined $gd) ? "$obj 0 R$gd" : "$obj 0 R";
Thank you for this module.
Patrick Bourdon - Paris - France