PerlSufi has asked for the wisdom of the Perl Monks concerning the following question:
I added the CAM::PDF modules and PDF::Extract modules because that is what I found. I just haven't figured out to use them yet.. I want to open a file in the working folder called pdfone.pdf and write it to file I created in the code I posteduse 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();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDF extract
by tangent (Parson) on Apr 01, 2013 at 02:52 UTC | |
by PerlSufi (Friar) on Apr 01, 2013 at 13:59 UTC | |
by tangent (Parson) on Apr 02, 2013 at 09:15 UTC | |
by PerlSufi (Friar) on Apr 03, 2013 at 17:17 UTC | |
by PerlSufi (Friar) on Apr 03, 2013 at 21:37 UTC | |
| |
|
Re: PDF extract
by jms53 (Monk) on Mar 31, 2013 at 10:40 UTC | |
by PerlSufi (Friar) on Mar 31, 2013 at 12:57 UTC | |
by PerlSufi (Friar) on Mar 31, 2013 at 20:50 UTC |