We're pleased to announce the release of Spire.Office for Java 10.7.0. In this version, the Spire.Doc for Java supports the "Two Lines in One" function. Spire.XLS for Java supports Array data binding in MarkerDesigner. Spire.PDF for Java supports converting PDF to Markdown. Spire.OCR for Java supports automatically rotating images. In addition, many known issues that occurred when converting and processing Word/ Excel/ PDF/PowerPoint files have been successfully fixed. More details are listed below.
Click the link to download Spire.Office for Java 10.7.0:
Here is a list of changes made in this release
Spire.Doc for Java
| Category | ID | Description |
| New feature | SPIREDOC-11113 SPIREDOC-11320 SPIREDOC-11338 |
Supports the "Two Lines in One" function. |
| Bug | SPIREDOC-11280 | Fixes the issue where MailMerge.executeWidthRegion(dataSource) incorrectly reads image paths from XML. |
| Bug | SPIREDOC-11283 | Fixes the issue that Word document comparison results were incorrect. |
| Bug | SPIREDOC-11296 | Fixes the issue that the program threw the "java.lang.ClassCastException" when loading Word documents. |
| Bug | SPIREDOC-11297 | Fixes the issue where the program would hang for extended periods when loading Word documents. |
| Bug | SPIREDOC-11300 | Fixes the issue that page numbers were incorrect when converting Word to PDF. |
| Bug | SPIREDOC-11304 | Fixes the issue that output file sizes were excessively large when converting Word to PDF. |
| Bug | SPIREDOC-11306 | Fixes the issue that content was missing during Word to PDF conversion. |
| Bug | SPIREDOC-11337 | Fixes the issue that the program threw "Culture Name: - is not a supported culture" when loading .odt documents. |
| Bug | SPIREDOC-11276 | Fixes the issue where accepting revisions did not affect the content in content controls. |
| Bug | SPIREDOC-11314 | Fixes the issue where converting Word to PDF caused a "NullPointerException" to be thrown. |
| Bug | SPIREDOC-11325 | Fixes the issue where retrieving Word document properties was incorrect. |
| Bug | SPIREDOC-11333 | Fixes the issue where converting Word to Markdown resulted in disorganized bullet points. |
| Bug | SPIREDOC-11360 | Fixes the issue where converting Word to PDF caused vertically oriented text in tables to be incorrect. |
| Bug | SPIREDOC-11364 | Fixes the issue where replacing bookmark content caused an "IllegalArgumentException" to be thrown. |
| Bug | SPIREDOC-11389 | Fixes the issue where loading a Word document caused an "IllegalArgumentException: List level must be less than 8 and greater than 0" to be thrown. |
| Bug | SPIREDOC-11390 | Fixes the issue where accepting revisions did not produce the correct effect. |
| Bug | SPIREDOC-11398 | Fixes the issue where using "pictureWatermark.setPicture(bufferedImage)" caused a "java.lang.NullPointerException" to be thrown. |
Spire.XLS for Java
| Category | ID | Description |
| New feature | SPIREXLS-5874 | Supports Array data binding in MarkerDesigner.
Workbook workbook = new Workbook();
// Get the first worksheet from the workbook
Worksheet sheet = workbook.getWorksheets().get(0);
// Set the value of cell range A1 to "&=Array"
sheet.getCellRange("A1").setValue("&=Array");
// Add a parameter named "Array" with an array of strings as its value
workbook.getMarkerDesigner().addArray("Array", new String[] { "Spire.Xls", "Spire.Doc", "Spire.PDF", "Spire.Presentation", "Spire.Email" });
// Apply the marker design to the workbook
workbook.getMarkerDesigner().apply();
// Calculate all the values in the workbook
workbook.calculateAllValue();
// Auto-fit the rows and columns in the allocated range of the worksheet
sheet.getAllocatedRange().autoFitRows();
sheet.getAllocatedRange().autoFitColumns();
// Save the workbook to the specified file path using Excel 2013 format
workbook.saveToFile(outputFile, ExcelVersion.Version2013);
// Clean up and release resources used by the workbook
workbook.dispose();
|
| Bug | SPIREXLS-5861 SPIREXLS-5873 |
Fixes the issue that font rendering was incorrect when converting Excel to PDF in Linux environments. |
| Bug | SPIREXLS-5869 | Fixes the issue that the behavior of isWriteUnMergedColSpan(false) was incorrect when converting Excel to HTML. |
| Bug | SPIREXLS-5870 | Fixes the issue that "Invalid formula: =#REF!" error happened when loading Excel documents. |
| Bug | SPIREXLS-5875 | Fixes the issue that the layout rendering was incorrect when converting Excel to PDF. |
| Bug | SPIREXLS-5876 | Fixes the issue that the program threw a java.lang.NullPointerException error when loading Excel files. |
| Bug | SPIREXLS-5877 | Removed dependencies on sun.misc.BASE64Decoder. |
Spire.PDF for Java
| Category | ID | Description |
| New feature | SPIREPDF-5995 | Added support for converting PDF files to Markdown format.
PdfDocument doc = new PdfDocument("input.pdf");
doc.saveToFile("output.md", FileFormat.Markdown);
|
| Adjustment | SPIREPDF-7597 | Internal adjustments were made to references of "sun.misc.BASE64Decoder". |
| Bug | SPIREPDF-7405 | Fixed the issue where text became garbled when converting PDF to images. |
| Bug | SPIREPDF-7546 | Fixed the issue that caused the program to throw a "NegativeArraySizeException" when converting PDF to images. |
| Bug | SPIREPDF-7563 | Fixed the issue where the CSS directory name was incorrect when converting PDF to HTML on Linux systems. |
| Bug | SPIREPDF-7564 | Fixed the issue where content was rotated when converting OFD to PDF. |
| Bug | SPIREPDF-7596 | Fixed the issue that caused the program to throw a "NegativeArraySizeException" when using pdfGrayConverter.toGrayPdf. |
| Bug | SPIREPDF-7599 | Fixed the issue where bookmark navigation positions were incorrect when merging PDFs. |
| Bug | SPIREPDF-7622 | Fixed the issue where LicenseProvider.setLicense(path) would throw an error if the path contained backslashes (""). |
| Bug | SPIREPDF-7513 | Fixed the issue where text search was failing. |
| Bug | SPIREPDF-7532 | Fixed the issue where the printed PDF content was scaled down when the system DPI was set to 150%. |
| Bug | SPIREPDF-7548 | Fixed the issue where SVG-to-PDF conversion produced incorrect results. |
Spire.Presentation for Java
| Category | ID | Description |
| Bug | SPIREPPT-2922 | Fixed the issue where the program threw 'java. lang. OutOfCacheError: Java heap space' when splitting PowerPoint documents. |
Spire.OCR for Java
| Category | ID | Description |
| New feature | - | Added support for Linux-ARM platform. |
| New feature | SPIREOCR-84 | Added support for automatically rotating images when necessary.
ConfigureOptions configureOptions = new ConfigureOptions(); configureOptions.SetAutoRotate(true); |
| New feature | SPIREOCR-107 | Added support for preserving the original image layout in text output.
VisualTextAligner visualTextAligner = new VisualTextAligner(scanner.getText()); String scannedText = visualTextAligner.toString(); |
| Bug | SPIREOCR-103 | Fixed the issue where the cleanup of the temporary folder "temp" was not functioning correctly. |
| Bug | SPIREOCR-104 | Fixed the issue where an "Error occurred during ConfigureDependencies" message appeared when the path contained Chinese characters. |
| Bug | SPIREOCR-108 | Fixed the issue where the content extraction order was incorrect. |