PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Convert XHTML to PDF

This code sample shows how to add a note to a PDF document.


Document document = new Document();
Section section = document.Sections.Add();

XhtmlParagraph xhtmlParagraph = new XhtmlParagraph();

ConversionSettings conversionSettings = new ConversionSettings();
conversionSettings.FontPath = @"..\fonts";

xhtmlParagraph.Settings = conversionSettings;
xhtmlParagraph.Text = "<b><font color=\"brown\">Hello world!</font></b><br/>With this you can:<ul><li>Include xHTML compliant layout</li><li>Allow formatting content by (web)designers<br/>... and include it in your document</li></ul>";


using (var file = new FileStream(@"..\..\result.pdf", FileMode.Create, FileAccess.Write))
Download TallPDF.NET 4.0
We will send you a download link

  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.