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


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

Thanks for the response. Here is the code.
use PDF::API2::Win32; $pdf = PDF::API2::Win32->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;
Thanks. leela

Edited (davorg): added code tags