Spire.Office for Java 8.2.0 is released

2023-02-17 10:09:47

We are excited to announce the release of Spire.Office for Java 8.2.0. In this version, Spire.PDF for Java supports converting PDF to PowerPoint; Spire.Doc for Java supports setting the sdtAppearance property for the content control; Spire.Presentation for Java enhances the conversion from PowerPoint to SVG and images. Moreover, many known issues are fixed in this version. More details are listed below.

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

Here is a list of changes made in this release

Spire.PDF for Java

Category ID Description
New feature SPIREPDF-2628 Supports converting PDF to PowerPoint.
PdfDocument pdfDocument =new PdfDocument();
pdfDocument.loadFromFile("input.pdf");
pdfDocument.saveToFile("output.pptx", FileFormat.PPTX);
New feature SPIREPDF-4924 Supports converting PDF with a password to PDFA.
PdfStandardsConverter converter=new PdfStandardsConverter("input.pdf", "password");
converter.toPdfA2A("output.pdf");
New feature SPIREPDF-5728 Supports compressing PDFs with a document open password.
PdfCompressor compressor = new PdfCompressor("input.pdf","password");
compressor.getOptions().getImageCompressionOptions().setImageQuality(ImageQuality.Low);
compressor.compressToFile("output.pdf");
Bug SPIREPDF-5628 Fixes the issue that the table was incorrect after converting PDFs to Excel files.
Bug SPIREPDF-5708 Fixes the issue that the hyperlinks were invalid after converting PDF to PDFA2B.
Bug SPIREPDF-5722 Fixes the issue that the text of the obtained attachment annotation was incorrect.
Bug SPIREPDF-5725 Fixes the issue that the program threw an error "Unable to decrypt document without document id" when merging PDFs.

Spire.XLS for Java

Category ID Description
Bug SPIREXLS-4423 Fixes the issue that the referenced data path was incorrect after setting formula multiple times.
Bug SPIREXLS-4426 Fixes the issue that it didn't take effect when setting DataValidation for a cell range area.
Bug SPIREXLS-4429 Fixes the issue that the application threw "Index is less than 0 or more" when loading an Excel document.

Spire.Doc for Java

Category ID Description
New feature

SPIREDOC-8665
SPIREDOC-8960

Supports setting the sdtAppearance property for the content control.
Document doc = ConvertUnit.GetNewEngineDocument();
doc.loadFromFile(inputFile);
for (Object docObj : doc.getSections().get(0).getBody().getChildObjects())
{
    if (docObj instanceof StructureDocumentTag) {
    DocumentObject Obj = (DocumentObject)docObj;
    SDTProperties sdtProperties = ((StructureDocumentTag)Obj).getSDTProperties();
    switch (sdtProperties.getSDTType())
    {
        case Text:
            sdtProperties.setAppearance(SdtAppearance.Hidden);
            break;
        case Rich_Text:
            sdtProperties.setAppearance(SdtAppearance.BoundingBox);
            break;
        case Picture:
            sdtProperties.setAppearance(SdtAppearance.Tags);
            break;
        case Check_Box:
            sdtProperties.setAppearance(SdtAppearance.Default);
            break;
    }
}
    }
    doc.saveToFile(outputFile, FileFormat.Docx);
doc.dispose();
Bug SPIREDOC-4055 Fixes the issue that the application threw "Unknown Source" error when updating the TableOfContents.
Bug SPIREDOC-8658 Fixes the issue that the application threw "Object reference not set to an instance of an object" when updating the fields.
Bug SPIREDOC-8759 Fixes the issue that the application threw "NullPointerException" when converting to PDF.
Bug SPIREDOC-8765
SPIREDOC-8879
Fixes the issue that the application threw "RasterFormatException" when converting Word to HTML.
Bug SPIREDOC-8854 Fixes the issue that some content displayed incorrectly after embedding the private fonts.
Bug SPIREDOC-8857
SPIREDOC-8893
Fixes the issue that the output effect was incorrect after accepting changes.
Bug SPIREDOC-8895 Fixes the issue that it didn't take effect after overwriting an existing protected password.
Bug SPIREDOC-8912 Fixes the issue that there was an error when opening the saved Word file by MS Word.
Bug SPIREDOC-8925 Fixes the issue that the application threw "NullPointerException" when loading a XML file.
Bug SPIREDOC-8954 Fixes the issue that the content format was incorrect after converting Word file to PDF.
Bug SPIREDOC-8983 Fixes the issue that the application threw "IllegalArgumentException" when setting the VerticalAlignment for a picture.

Spire.Presentation for Java

Category ID Description
Bug SPIREPPT-2139 Fixes the issue that the line color was incorrect when converting slide to SVG.
Bug SPIREPPT-2142 Fixes the issue that it failed to get italicized style information of text.
Bug SPIREPPT-2144 Fixes the issue that it failed to get the font of text.
Bug SPIREPPT-2146 Fixes the issue that the image shape was incorrect when converting slide to SVG.
Bug SPIREPPT-2147 Fixes the issue that the text transparency lost when converting HTML to PowerPoint.
Bug SPIREPPT-2151
SPIREPPT-2154
SPIREPPT-2158
SPIREPPT-2159
SPIREPPT-2166
SPIREPPT-2180
Fixes the issue that the program threw java.lang.NullPointerException when loading PowerPoint files.
Bug SPIREPPT-2155 Fixes the issue that the program threw Index is less than 0 or more than or equal to the list count when loading PowerPoint files.
Bug SPIREPPT-2156 Fixes the issue that the program hung when converting slide to images.
Bug SPIREPPT-2157
SPIREPPT-2163
SPIREPPT-2167
SPIREPPT-2170
Fixes the issue that the program threw java.lang.NullPointerException when converting slide to images.
Bug SPIREPPT-2160 Fixes the issue that the program threw java.lang.ArrayIndexOutOfBoundsException when converting slide to images.
Bug SPIREPPT-2161 Fixes the issue that the program threw java.lang.NumberFormatException when converting slide to images.
Bug SPIREPPT-2162 Fixes the issue that the program threw java.lang.ClassCastException when converting slide to images.
Bug SPIREPPT-2164
SPIREPPT-2182
Fixes the issue that the program threw java.lang.UnsupportedOperationException when converting slide to images.
Bug SPIREPPT-2165 Fixes the issue that the program threw com.spire.presentation.AppException: Property not found when converting slide to images.
Bug SPIREPPT-2181 Fixes the issue that the program threw java.lang.Exception: Error reading bytes when loading PowerPoint files.
Bug SPIREPPT-2183 Fixes the issue that the program threw java.lang.ClassCastException when loading PowerPoint files.
Bug SPIREPPT-2184 Fixes the issue that the program threw java.lang.ClassCastException when saving PowerPoint file after deleting videos.
Bug SPIREPPT-2184 Fixes the issue that the program threw java.lang.IllegalArgumentException when saving PowerPoint file after deleting videos.