in reply to Retrieve the PDF file description
Use of uninitialized value in concatenation (.) or string at pdf.pl li +ne 9. Use of uninitialized value in concatenation (.) or string at pdf.pl li +ne 9. 1.4
#!/usr/bin/perl use strict; use warnings; use PDF; my $pdf = PDF->new("003.pdf"); my $version = $pdf->Version; my $title = $pdf->GetInfo("Title"); my $author = $pdf->GetInfo("Author"); if ($version){ print "\nVersion: $version"; }else{ print "\nVersion: Undefined"; } if ($title){ print "\nTitle: $title"; }else{ print "\nTitle: Undefined"; } if ($author){ print "\nAuthor: $author\n"; }else{ print "\nAuthor: Undefined\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Retrieve the PDF file description
by Punitha (Priest) on Apr 29, 2006 at 12:11 UTC | |
by marto (Cardinal) on Apr 29, 2006 at 12:27 UTC |