[reportlab-users] Fwd: text of paragraph sits at bottom of area.
Tim Roberts
timr at probo.com
Mon Apr 6 13:35:39 EDT 2009
Kerri Reno wrote:
> I sent this question last month. I'm sorry if I worded it badly or
> something, but I got no response. Can anyone help me with this? I'm
> writing a paragraph directly to a canvas, and the text is bottom
> oriented. Please help me with this!
Could you possibly include a runnable sample that demonstrates the
problem? It's a little hard to discern exactly what you mean from the
example.
I would point out that coordinates in Postscript do start at the bottom
of the page and go up. If you have a chunk of text of variable height,
and you draw it at (72,72), it will always draw at the lower-left corner
of the page. If you want it to draw with the top of the paragraph 5
inches above the bottom of the page, then you need to compute the Y
coordinate as 5 * inch - paragraph.height.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users
mailing list