BernieC has asked for the wisdom of the Perl Monks concerning the following question:
I get#!/usr/bin/perl # $Id: template.pl 1.13 2022/05/13 12:17:31 bernie Exp $ use v5.10 ; use strict; use warnings ; use Getopt::Std ; # getopts(<flags>, \%args) ; my %args ; use PDF; my $pdf = PDF->new("test.pdf") or die ""; say "is a PDF" if $pdf->IsaPDF ; say "Has ".$pdf->Pages." Pages" ; exit ;
Line 13 is the "new" method and it doesn't die. Is there some other PDF module that would do what I need? ThanksD:\Desktop>pdftest Premature end of file reached at D:\Desktop\pdftest.pl line 13. Bad object reference '' at D:\Desktop\pdftest.pl line 13. Bad object reference '' at D:\Desktop\pdftest.pl line 13. Bad object reference '' at D:\Desktop\pdftest.pl line 13. is a PDF Use of uninitialized value in concatenation (.) or string at D:\Deskto +p\pdftest.pl line 15. Has Pages
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with PDF module [comparison]
by kcott (Archbishop) on May 06, 2023 at 16:09 UTC | |
by kcott (Archbishop) on May 07, 2023 at 00:48 UTC | |
by Anonymous Monk on May 08, 2023 at 10:35 UTC | |
|
Re: Help with PDF module
by marto (Cardinal) on May 06, 2023 at 13:46 UTC | |
|
Re: Help with PDF module
by Anonymous Monk on May 06, 2023 at 13:46 UTC |