in reply to Re^6: blank pdf generated using PDF::API2 (Updated)
in thread blank pdf generated using PDF::API2
Try this program against your problem pdf. What version of PDF::API2 do you have ?
poj#!/usr/bin/perl use strict; use warnings; use PDF::API2; my $file = 'some.pdf'; my $pdf = PDF::API2->open($file); my $pages = $pdf->pages(); printf "PDF Version : %s\n",$pdf->version(); printf "Pages : %s\n",$pdf->pages(); for my $n (1..$pages){ my $page = $pdf->openpage($n); printf "Page %3d Media %5.2f %5.2f %5.2f %5.2f\n",$n,$page->get_medi +abox; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: blank pdf generated using PDF::API2 (Updated)
by lennelei (Acolyte) on Jul 21, 2017 at 13:26 UTC | |
by poj (Abbot) on Jul 21, 2017 at 15:38 UTC |