use PDF::API2; use PDF::Extract; use CAM::PDF; use constant mm => 25.4 / 72; use constant in => 1 / 72; use constant pt => 1; #create pdf file and page my $pdf = PDF::API2->new(-file => "$0.pdf"); my $page = $pdf->page; $font = $pdf->corefont('Helvetica-Bold'); #create a header my $header_text = $page->text; $header_text->font($font, 24); $header_text->translate(105/mm, 250/mm); $header_text->fillcolor('black'); $header_text->text_center('Thank you for your business!'); $pdf-> save();