PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 1:47 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Dec 19, 2008 12:56 pm 
Offline

Joined: Fri Dec 19, 2008 12:48 pm
Posts: 3
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 08, 2009 10:05 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
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).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 14, 2009 1:04 pm 
Offline

Joined: Fri Dec 19, 2008 12:48 pm
Posts: 3
Ah, that's a good idea and one that never occurred to me. I'll see how it goes! Thanks.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 14, 2009 1:48 pm 
Offline

Joined: Fri Dec 19, 2008 12:48 pm
Posts: 3
That works brilliantly. Thanks for the suggestion!!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun May 10, 2009 12:04 pm 
Offline

Joined: Sun May 10, 2009 12:01 pm
Posts: 1
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!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 209 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group