PDF-API2 - Missing signature

Posted on Sun Jun 24 19:17:40 2007 by larsskj
Missing signature
Hi everyone, I'm a new user of PDF::API2.
When trying to create a simple PDF file with code like
use PDF::API2; my $pdf = PDF::API2->new(-file => 'test.pdf'); my $page = $pdf->page; my $font = $pdf->corefont('Helvetica'); $page->mediabox('A4'); my $gfx = $page->gfx; $gfx->textlabel(200,700,$font,20,'Hello World!'); $pdf->save; $pdf->end;
I _do_ get a PDF-file - at least sort of: It lacks the %PDF-X.X header, so none of my PDF readers will accept it. However, if I add the header myself, the file works fine.
How come?
Regards,
Lars
Write a response