Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

by PERLscienceman (Curate)
on Jul 04, 2003 at 00:03 UTC ( #271337=note: print w/replies, xml ) Need Help??


in reply to manipulating PDFs

Replies are listed 'Best First'.
Re: Re: manipulating PDFs
by mucker (Initiate) on Jul 04, 2003 at 00:49 UTC
    Well, for example i can open a pdf file like this:
    $pdf=PDF::API2->open("HelloWorld.pdf");
    but i don't know how to traverse through the objects, or read the text in the file or anything, i can pretty much just write on top of it.

    Also when creating a pdf file i find that i can't judge the page limit to format the page correctly, e.g. if a line is too long it just goes off the page.
    my $page = $pdf->page;
    $page->mediabox(200,200);
    my $txt=$page->text;
    $txt->translate(0,0);
    my $font=$pdf->corefont('Courier-Bold',1);
    $txt->font($font,50);
    $txt->lead(50);
    $txt->text('If i make this line too long it will disappear off the end of the page');
      look through api2 documentation
      join the yahoo api2 group and read the threads there. it's all there for you

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://271337]
help
Chatterbox?
[duyet]: Oh, seems like LanX' team has won the fourth World Cup ... awesome!

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2016-12-10 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (160 votes). Check out past polls.