Spire.Office for Java 9.11.0 is released

Spire.Office for Java 9.11.0 is released

2024-11-29 09:05:09

We're pleased to announce the release of Spire.Office for Java 9.11.0. In this version, the Spire.PDF for Java supports converting HTML strings to PDF documents using ChromeHTMLConverter, and also supports enabling 'Background graphics' when using ChromeHTMLConverter to convert HTML to PDF. Beyond that, many known issues that occurred when converting, processing and saving Word/ Excel/ PDF/PowerPoint files have been successfully fixed. More details are listed below.

Click the link to download Spire.Office for Java 9.11.0:

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
Bug SPIREDOC-10693 Fixes the issue that the highlighting effect was incorrect when searching.
Bug SPIREDOC-10726 Fixes the issue that the table borders were not displaying in WPS after saving doc as docx.
Bug SPIREDOC-10747 Fixes the issue that the program threw an "IllegalArgumentException" when converting Word to PDF.
Bug SPIREDOC-10755 Fixes the issue that the border properties of the table changed.
Bug SPIREDOC-10794 Fixes the issue that the column widths in tables were inconsistent after converting Word to HTML.
Bug SPIREDOC-10833 Fixes the issue that the program threw an "Unexpected table container" error when converting Word to PDF.
Bug SPIREDOC-10861 Fixes the issue that the layout was inconsistent when converting Word to HTML.
Bug SPIREDOC-10862 Fixes the issue that the images were lost when converting RTF to PDF.
Bug SPIREDOC-10864 Fixed the issue of incorrect effect after accept the revisions.
Bug SPIREDOC-10868 Fixes the issue that the program threw the error "The string contains invalid characters" when loading Word.
Bug SPIREDOC-10822 Fixed the issue of incorrect effect when adding LaTeX formula.
Bug SPIREDOC-10245 Fixes the issue that the layout of some content was incorrect when converting Word to PDF.
Bug SPIREDOC-10538 Fixes the issue that the bookmarks cannot be redirected when converting Word to PDF.
Bug SPIREDOC-10610 Fixes the issue that the program threw an "IllegalStateException" error when converting Word to PDF.
Bug SPIREDOC-10872 Optimizes the time-consuming issue of adding images in Word.
Bug SPIREDOC-10909
SPIREDOC-10940
Fixes the issue that the program threw a 'NullPointerException' error while comparing documents.
Bug SPIREDOC-10923 Fixes the issue that the program threw a 'ClassCastException' error while loading a document.
Bug SPIREDOC-10926 Fixes the issue that the program threw an "IllegalArgumentException" error while comparing documents.
Bug SPIREDOC-10929 Fixes the issue that the permission protection was lost after multiple operations on documents with restricted editing.
Bug SPIREDOC-10936 Fixes the issue that the program threw an "Can't create formfield with 'Check1' name" error when converting RTF to PDF.
Bug SPIREDOC-10960 Fixes the issue that the program threw the error "Index is less than 0 or more than or equal to the list count" when using updateTableOfContents() method.
Bug SPIREDOC-10962 Fixed the issue that the formula comparison effect was incorrect.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-5446 Fixes the issue that the program threw "Specified argument was out of the range of valid values" when converting XLSX to XLSB.
Bug SPIREXLS-5493 Fixes the issue that incorrect effect occurred when using Worksheet.autoFitColumn.
Bug SPIREXLS-5516 Fixes the issue that content got lost when converting Excel to PDF.
Bug SPIREXLS-5526 Fixes the issue that font sizes were inconsistent after saving some Excel files.

Spire.PDF for Java

Category ID Description
New feature SPIREPDF-7165 Supports converting HTML strings to PDF documents using ChromeHTMLConverter.
ChromeHtmlConverter converter = new ChromeHtmlConverter(TestUtil.ChromiumPath);
URI uri = new URI(converter.getUrl());
IWebSocketService webSocketService = (IWebSocketService) WebSocketServiceImpl.create(uri);
converter.setWebSocketService(webSocketService);

String htmlString = "<html><body><p style=\' color:black \'>E-iceblue</p></body></html>";

converter.convertToPdf(htmlString, OutputPath, null);
New feature SPIREPDF-7184 Supports enabling 'Background graphics' when using ChromeHTMLConverter to convert HTML to PDF.
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);
options.setPageSettings(new PageSettings(PaperFormat.A4));
options.getPageSettings().setMarginTop(0);
options.getPageSettings().setMarginBottom(0);
options.getPageSettings().setMarginLeft(0);
options.getPageSettings().setMarginRight(0);
options.getPageSettings().setPrintBackground(true); 
converter.convertToPdf(url, OutputPath, options);
Bug SPIREPDF-6945 Fixes the issue that content was lost when converting PDF to PDFA2A.
Bug SPIREPDF-7157 Fixes the issue that content overlapped when converting SVG to PDF.
Bug SPIREPDF-7160 Fixes the issue that the program threw "Value cannot be null" error when merging documents.
Bug SPIREPDF-7191 Fixes the issue that attachments were lost during PDF to OFD conversion.

Spire.Presentation for Java

Category ID Description
Bug SPIREPPT-2596 Optimizes the clarity when converting PowerPoint to image.
Bug SPIREPPT-2624 Fixes the issue that the program threw a "ClassCastException" error when using ISmartArtNode. getTextFrame(). getTextPosition().
Bug SPIREPPT-2637
SPIREPPT-2650
SPIREPPT-2651
Fixes the issue that incorrect content layout existed when converting PowerPoint to images.
Bug SPIREPPT-2639 Fixes the issue that incorrect effects occurred when using GroupShape. setTop().