in reply to Count the number of images in pdf
I have never used it, but quickly browsing the documentation you linked in your post I found that you can use the 'pages' function:
$pagenumber = $pdf->pages
Returns the number of pages in the document.
use PDF::API2; my $pdf = PDF::API2->open('test_file.pdf'); print "'test_file.pdf' has " . $pdf->pages . " pages\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Count the number of images in pdf
by marto (Cardinal) on Dec 21, 2005 at 12:48 UTC | |
by etm117 (Pilgrim) on Dec 21, 2005 at 13:39 UTC | |
by anniyan (Monk) on Dec 21, 2005 at 15:11 UTC |