Question

The Paragraph in MigraDoc automatically wraps text and adjust the height automatically. I want to be able to Truncate the text and if possible get it to Shrink to Fit. Has anyone accomplished this or have any idea how to do so?

Was it helpful?

Solution

You can use functions from PDFsharp to query the size of the text - and then reduce font size or shorten the text until it fits.

See also here:
http://forum.pdfsharp.net/viewtopic.php?p=6158#p6158

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top