PDFsharp includes an XTextFormatter class that allows to draw text with line breaks.
A frequently requested feature: how to measure the height of the text before drawing it? I decided to add this measuring functionality. I found it was more difficult than I expected. Continue reading PDFsharp: Improving the XTextFormatter class: Measuring the height of the text