Spire.PDF for Java 10.10.7 supports converting HTML to PDF using the Chrome plugin

2024-10-30 08:15:43

We are excited to announce the release of Spire.PDF for Java 10.10.7. This version supports converting HTML to PDF using the Chrome plugin. It also enhances the conversion from PDF to images as well as HTML, SVG, and OFD to PDF. Moreover, a lot of known issues are fixed successfully in this version, such as the issue that setting custom properties for attachments did not take effect. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-7120 Synchronizes the ToPdfX1A2001() method under the PdfStandardsConverter class to Java.
New feature SPIREPDF-6972 Supports converting HTML to PDF using the Chrome plugin. Supported systems: Windows & Linux.
ChromeHtmlConverter converter = new ChromeHtmlConverter(TestUtil.ChromiumPath);
URI uri = new URI(converter.getUrl());
IWebSocketService webSocketService = (IWebSocketService) WebSocketServiceImpl.create(uri);
converter.setWebSocketService(webSocketService);
ConvertOptions options = new ConvertOptions();
options.setTimeout(10 * 1000);
PageSettings pageSettings = new PageSettings();
pageSettings.setPaperFormat(8);//A4
pageSettings.setMarginBottom(0);
pageSettings.setMarginTop(0);
pageSettings.setMarginLeft(0);
pageSettings.setMarginRight(0);
options.setPageSettings(pageSettings);
converter.convertToPdf(inputPath, OutputPath, options);
New feature SPIREPDF-7094 Supports output of logs through the Logger class when using the Chrome plugin to convert HTML to PDF.
ChromeHtmlConverter converter = new ChromeHtmlConverter(TestUtil.ChromiumPath);
converter.setLogger(new Logger(OutputPath_TXT)); 
// Save logs to a txt file
converter.getLogger().setEnabled(true); 
// Print logs to the console
Bug SPIREPDF-6958 Fixes the issue that the effect of converting HTML to PDF was incorrect.
Bug SPIREPDF-7064 Fixes the issue that the program threw "Value cannot be null" exception when merging documents.
Bug SPIREPDF-7087 Fixes the issue that it failed to convert HTML to PDF over 1.2MB in size.
Bug SPIREPDF-7089 Fixes the issue that the text of tables was messed up after converting PDF to images.
Bug SPIREPDF-7090 Fixes the issue that the contents were cut off from the page breaks when converting HTML to PDF.
Bug SPIREPDF-7091 Fixes the issue that the program hung when converting HTML to PDF.
Bug SPIREPDF-7113 Fixes the issue that the tool alerted that there were errors in the document content after drawing SVG on PDF layers and opening the resulting document in Adobe tools.
Bug SPIREPDF-7127 Fixes the issue that the program threw an exception of "Unknown Color Space Type" when converting OFD to PDF.
Bug SPIREPDF-7128 Fixes the issue that setting the customized properties of attachments did not take effect.
Bug SPIREPDF-7130 Fixes the issue that the program threw "For input string: 'CM'" exception when converting OFD to PDF.
Click the link below to download Spire.PDF for Java 10.10.7: