Convert HTML string to PDF starts to support in Spire.PDF 3.0.27

We are pleased to announce a new version-Spire.PDF pack hotfix 3.0.27. With the hard work of our develop team, Spire.PDF 3.0.27 this time not only fixed on bug solutions, we also add two new features. Please check the below new features and bug solutions for detailed information.

New Features:

  • Add new feature to convert html string to PDF.

Code Snippet:

PdfDocument pdf = new PdfDocument();
PdfHtmlLayoutFormat htmlLayoutFormat = new PdfHtmlLayoutFormat();
htmlLayoutFormat.IsWaiting = false;
PdfPageSettings seting = new PdfPageSettings();
seting.Size = PdfPageSize.A4;
pdf.LoadFromHTML(strHtmlCode, true, seting, htmlLayoutFormat);
pdf.SaveToFile("output.pdf");
  • Add new feature pdf.SaveAsDrawingImage(pageIndex); to save pdf as DrawingImage for WPF

Bug solutions:

  • Fix the error "object reference not set to an instance of an object" caused in converting PDF to Image.
  • Fix the blank output PDF issue after converting HTML to PDF.
  • Fix the "Out of memory" exception when using TrueType fonts embedded in the pdf file.
  • Fix the error "Parameter is not valid" caused in converting PDF to XPS.
  • Fix the issue that the pages render with a strange space in the beginning of the file when displaying PDF file inside a Print Preview Dialog.
  • Fix losing the fonts issue after merging two pdf files.

Free Trial to evaluate Spire.PDF 3.0.27 here:

http://www.e-iceblue.com/Download/download-pdf-for-net-now.html