http://www.perlmonks.org?node_id=582452


in reply to Re^2: PDF through perl
in thread PDF through perl

Did you read the PDF::API2 documentation? If you did, then why are you doing this:
use PDF::API2::Win32; $pdf = PDF::API2::Win32->new;
when the docs say to do this:
use PDF::API2; $pdf = PDF::API2->new; $fnt = $pdf->corefont('Helvetica-Bold'); $page = $pdf->page; $page->mediabox('A4'); $gfx = $page->gfx; $gfx->textlabel(200,700,$fnt,20,'Hello World !'); $pdf->saveas('/this/new/document.pdf'); $pdf->end;
jdtoronto