We are excited to announce the release of Spire.PDF 10.7.21. This version supports converting HTML to PDF using the Chrome plugin and optimizes the layout of Excel documents converted from PDF documents. Besides, it also enhances the conversion from PDF to Excel, PDFA1B, and images. Moreover, some known issues are fixed in this version, such as the issue that the program reported an error when printing PDF documents. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | - | Supports converting HTML to PDF using the Chrome plugin. Save the resulting PDF document to a file: string chromeLocation = baseDirectory + "chrome\\Chrome-bin\\chrome.exe"; ChromeHtmlConverter converter = new ChromeHtmlConverter(chromeLocation); ConvertOptions options = new ConvertOptions(); options.Timeout = 10 * 1000; options.PageSettings = new PageSettings() { PaperWidth = 8.77, PaperHeight = 6.20, MarginBottom = 0, MarginTop = 0, MarginLeft = 0, MarginRight = 0 }; converter.ConvertToPdf("https://www.e-iceblue.com/", outputFile, options); var pdfAsStream = new MemoryStream(); string chromeLocation = baseDirectory + "chrome\\Chrome-bin\\chrome.exe"; ChromeHtmlConverter converter = new ChromeHtmlConverter(chromeLocation); ConvertOptions options = new ConvertOptions(); options.Timeout = 10 * 1000; options.PageSettings = new PageSettings() { PaperWidth = 8.77, PaperHeight = 6.2, MarginBottom = 0, MarginTop = 0, MarginLeft = 0, MarginRight = 0 }; converter.ConvertToPdf("https://www.e-iceblue.com/", pdfAsStream, options); |
New feature | SPIREPDF-6820 | Optimizes the layout of Excel documents converted from PDF documents. Use the new code: pdfDocument.ConvertOptions.SetPdfToXlsxOptions(new XlsxLineLayoutOptions(true, false, false)); //bool convertToMultipleSheet, bool rotatedText, bool splitCell |
Bug | SPIREPDF-6789 | Fixes the issue that the program reported an error when printing PDF documents. |
Bug | SPIREPDF-6806 | Fixes the issue that images in PDF documents converted from XPS documents were not displayed in the PDF.js viewer. |
Bug | SPIREPDF-6848 | Fixes the issue that the border was lost after filling the text field with content and opening the document in Google Chrome or previewing it in Adobe when printing. |
Bug | SPIREPDF-6896 | Fixes the issue that the program threw System.NullReferenceException when converting a PDF document to a PDFA1B document. |
Bug | SPIREPDF-6898 SPIREPDF-6899 |
Fixes the issue that the program threw System.NullReferenceException when extracting text from PDF documents. |
Bug | SPIREPDF-6906 | Fixes the issue that the program threw System.ArgumentNullException when converting PDF documents to images. |
Click the link to download Spire.PDF 10.7.21:
More information of Spire.PDF new release or hotfix: