RE: Page poperties?????

"Mark Fowle" <mfowle-uVnJ9s0aRV+BUy7/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
As stated your question does not make much sense.

If you created the PDF you kind of know the height.

 

As you can write content at any arbitrary location on the page the idea of
coming to the end does not mean much.

 

If you are trying to write out a large block of text that may go over the
end of a page you need to figure out how to deal with that, given your
circumstances.

If you write out individual lines less that a page width long then just
track the Y value of the page position and something along the lines of if
CurrentY < 0 + bottomMargin new page

 

If you are writing out blocks of text you need to do something similar but
on a block level (I don't use this method) if CurrentY - block height < 0 +
bottomMargin new page

 

And or If I've totally misunderstood you the positioning (x,y) starts at the
bottom left so a y of 0 is the bottom of the page.

 

 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Ben
Sent: Wednesday, September 05, 2007 11:03 AM
To: [email protected]
Subject: [perl-text-pdf-modules] Page poperties?????

 

I am trying to find a way to get  the height of the page, so I know when it
end and I can create a new page dynamically.

anyone done something like this or know how to?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.