PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 16, 2024 10:55 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 27, 2014 10:41 am 
Offline

Joined: Thu Feb 27, 2014 10:26 am
Posts: 4
If I have some text (of varying length) which is word-wrapped, is there any means by which I can find out how much vertical space has been used?

So that I can start my next paragraph in the correct place, rather than 'guessing' where to put it.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 27, 2014 10:51 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
I presume the question is about PDFsharp.

How do you wrap the text?

If you use XTextFormatter: copy the source code to your project, add an out parameter that returns the height, that's all.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 27, 2014 2:25 pm 
Offline

Joined: Thu Feb 27, 2014 10:26 am
Posts: 4
Perfect, thank you!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 58 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