PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Drawing paragraph aligned to bottom of page
http://forum.pdfsharp.com/viewtopic.php?f=2&t=587
Page 1 of 1

Author:  dylanparry [ Fri Dec 19, 2008 12:56 pm ]
Post subject:  Drawing paragraph aligned to bottom of page

Hi,

I am using MigraDoc to create a paragraph.

What I want to do is have a dynamically generated paragraph of text whereby I don't know what the height will be, and have that paragraph drawn so that the bottom of the paragraph is aligned to the bottom of the page.

Is there any way that I can either:

a) Calculate the height of the paragraph so that I know where to position it

b) Position the paragraph with respect to its bottom-left corner, so that the coordinates I supply for rendering will represent the botton-left corner's position rather than the top-left corner's.

c) Position the paragraph so that the coordinates are relative to the bottom-left corner of the page, so that "0, 0" would be the bottom-left of the page rather than the top-left.

d) Create the paragraph so that the text fills upwards rather than downwards :s

Thanks in advance.

Author:  Thomas Hoevel [ Thu Jan 08, 2009 10:05 am ]
Post subject: 

Hi!

I think I'd try a table with a single row and a single column. You can set width and height of this table and also set vertical and horizontal alignment of the cell.
Put this table into a Textframe which can have an absolute position on the page (e.g. 0cm from bottom page border or bottom page boundary).

Author:  dylanparry [ Wed Jan 14, 2009 1:04 pm ]
Post subject: 

Ah, that's a good idea and one that never occurred to me. I'll see how it goes! Thanks.

Author:  dylanparry [ Wed Jan 14, 2009 1:48 pm ]
Post subject: 

That works brilliantly. Thanks for the suggestion!!

Author:  tomtom_fr [ Sun May 10, 2009 12:04 pm ]
Post subject: 

Hi !

I would like to do exactly the same thing, but I cannot find which method to use.

Can you please give me an example of some code ?


Thanks in advance!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/