Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: PDF::API2 is confusing me to death..

by Bentov (Novice)
on Sep 06, 2005 at 18:26 UTC ( #489633=note: print w/replies, xml ) Need Help??


in reply to Re: PDF::API2 is confusing me to death..
in thread PDF::API2 is confusing me to death..

Hmmm, I am able to create multiple pages, but the text just writes over itself on the 1st page. I have some problems with your code,but I see where you are going with it, I'll try to make some mods to my program. I guess though I still have the problem that I don't understand what is supposed to select the second page. I know what creates the additional pages, but what says "hey, write to me now buddy!" Bentov
  • Comment on Re^2: PDF::API2 is confusing me to death..

Replies are listed 'Best First'.
Re^3: PDF::API2 is confusing me to death..
by mpeters (Chaplain) on Sep 06, 2005 at 20:50 UTC
    I know what creates the additional pages, but what says "hey, write to me now buddy!"
    That's what the openpage() method does. It will return the page object. From that you can add whatever you want to that page. This is how I usually do that:
    my $current_page = $pdf->openpage($page_num); $current_page->gfx->textlabel( 100, # X coord 200, # Y coord $font, $font_size, "Some text to write", ); $current_page->update();

    -- More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://489633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-03-04 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (104 votes). Check out past polls.

    Notices?