Spire.PDF for Java 9.9.6 supports converting PDF to SVGZ and comparing PDF documents

2023-09-26 09:37:18

We are excited to announce the release of Spire.PDF for Java 9.9.6. This version supports converting PDF to SVGZ and comparing PDF documents. It also enhances the conversion from PDF to Excel, SVG, and PPTX. Moreover, some known issues are fixed in this version, such as the issue that the program threw "PDF file structure is not valid" when loading PDF documents. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-6082
SPIREPDF-6178
SPIREPDF-6220
Provides the XlsxSpecialTableLayoutOptions interface to optimize formatting when converting PDF with tables to Excel.
PdfDocument document=new PdfDocument();
document.loadFromFile("input.pdf");
XlsxSpecialTableLayoutOptions options=new XlsxSpecialTableLayoutOptions(false, false, false);
document.getConvertOptions().setPdfToXlsxOptions(options);
document.saveToFile("output.pdf", FileFormat.XLSX);
New feature SPIREPDF-6247 Supports converting PDF to SVGZ.
document.saveToFile("output.svgz", FileFormat.SVGZ);
New feature SPIREPDF-6249 Synchronized the function of comparing the contents of PDF documents to JAVA.
PdfDocument pdf1 = new PdfDocument(inputFile_1);
PdfDocument pdf2 = new PdfDocument(inputFile_2);
PdfComparer compare = new PdfComparer(pdf1, pdf2);
compare.getOptions().setPageRanges(0, pdf1.getPages().getCount() - 1, 0, pdf2.getPages().getCount() - 1);
compare.compare(outputFile);
Bug SPIREPDF-6252 Fixes the issue that the page size is inconsistent after converting PDF to SVG.
Bug SPIREPDF-6276 Fixes the issue that the text is duplicated after converting PDF to PPTX.
Bug SPIREPDF-6280 Fixes the issue that the program threw "PDF file structure is not valid" when loading PDF documents.
Bug SPIREPDF-6281 Fixes the issue that the program threw "NullPointerException" when signing PDF.
Click the link below to download Spire.PDF for Java 9.9.6: