PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drawing paragraph aligned to bottom of page

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
dylanparry



Joined: 19 Dec 2008
Posts: 3

PostPosted: Fri Dec 19, 2008 12:56 pm    Post subject: Drawing paragraph aligned to bottom of page Reply with quote

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.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Jan 08, 2009 10:05 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
dylanparry



Joined: 19 Dec 2008
Posts: 3

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

Ah, that's a good idea and one that never occurred to me. I'll see how it goes! Thanks.
Back to top
View user's profile Send private message
dylanparry



Joined: 19 Dec 2008
Posts: 3

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

That works brilliantly. Thanks for the suggestion!!
Back to top
View user's profile Send private message
tomtom_fr



Joined: 10 May 2009
Posts: 1

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

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!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com