PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Dec 09, 2019 5:07 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Sep 24, 2019 7:56 am 
Offline

Joined: Tue Sep 24, 2019 7:41 am
Posts: 2
Hello, I ask for help for two problems:
- spacing between words: the generated pdf prints the strings with excessive spacing. Is it possible to reduce/customize the size of the space?
- multiline: if I have a multiline text I can count how many lines there are based on \n, but if the text wraps for reasons of available space I can't count the correct number of lines. Is there a way to count the exact number of lines occupying the text?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 24, 2019 8:11 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3012
Location: Cologne, Germany
Hi!
Welcome to the forum.

Giulia wrote:
- spacing between words: the generated pdf prints the strings with excessive spacing. Is it possible to reduce/customize the size of the space?
If PDFsharp is used properly there is no excessive spacing.

Giulia wrote:
- multiline: if I have a multiline text I can count how many lines there are based on \n, but if the text wraps for reasons of available space I can't count the correct number of lines. Is there a way to count the exact number of lines occupying the text?
Try the XTextFormatter class and modify it if you want more.
viewtopic.php?f=8&t=3192

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 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