Spire. PDF for Java

Java PDF Library - Developing PDF in JavaJava PDF Library – Create Read Modify Print Convert PDF Documents in Java

Professional Java Library to process PDF documents

This is the list of changelogs of Spire.PDF for Java New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Download Spire.PDF for Java to start a free trial:

Version: 9.9.2

Category ID Description
Bug SPIREPDF-6241 Fixes the issue that the characters overlapped when converting OFD to PDF.

Version: 9.8.6

Category ID Description
Bug SPIREPDF-6104 Fixes the issue that some borders of charts were cropped after converting PDF to SVG.
Bug SPIREPDF-6133 Fixes the issue that the cell merge of the same column was incorrect after converting PDF to Excel.
Bug SPIREPDF-6209 Fixes the issue that setting fonts for text boxes didn't take effect.

Version: 9.7.8

Category ID Description
New feature SPIREPDF-5843
SPIREPDF-5854
Adds a new interface for converting PDF to Word.
PdfToWordConverter converter = new PdfToWordConverter(inputPath); 
converter.saveToDocx(OutputPath);
converter.dispose();
New feature SPIREPDF-6115 Adds a new interface for setting the "crop box".
PdfDocument pdfDocument = new PdfDocument(); 
pdfDocument.loadFromFile("input.pdf"); 
PdfPageBase pdfPageBase = pdfDocument.getPages().get(0); 
// setting the "crop box". 
pdfPageBase.setCropBox(new Rectangle2D.Float(0,0,400,800));
pdfDocument.saveToFile("output.pdf", FileFormat.PDF);
New feature SPIREPDF-6167 Adds a new interface for setting margins when printing documents.
PdfDocument pdf = new PdfDocument();
pdf.loadFromFile(inputFile);
PrintSettings setting = pdf.getPrintSettings();
pdf.getPrintSettings().setPaperMargins(30,30, 30, 30);
setting.setPrinter("Microsoft XPS Document Writer");
pdf.getPrintSettings().printToFile(outputFile);
pdf.print();
pdf.close();
Bug SPIREPDF-3556 Fixes the issue that the chart axis was missing coordinates after converting PDF to Word.
Bug SPIREPDF-4980 Fixes the issue that the content was incorrect after converting PDF to Word using flow layout.
Bug SPIREPDF-5047 Fixes the issue that the font name with multiple suffixes after converting PDF to Word.
Bug SPIREPDF-5067 Fixes the issue that the characters garbled when viewing converted PDF to Word with Office 365.
Bug SPIREPDF-6085 Fixes the issue that the application threw exception: java.lang.NullPointerException when loading a PDF.
Bug SPIREPDF-6102 Fixes the issue that viewing the converted PDFA document would prompt for missing fonts.
Bug SPIREPDF-6104 Fixes the issue that the borders were cropped after converting PDF to SVG.
Bug SPIREPDF-6105 Fixes the issue that the PdfDocument.setCustomFontsFolders() method was not effective when converting PDF to PDFA.
Bug SPIREPDF-6112 Fixes the issue that the application threw excepttion:"PDF file structure is not valid" when loading a PDF.
Bug SPIREPDF-6147
SPIREPDF-6175
Fixes the issue that the bold font effect was unclear when converting PDF to OFD.
Bug SPIREPDF-6154 Fixes the issue that the application threw exception: "For input string: 'e-'" when merging documents and converting to PDFA1A.
Bug SPIREPDF-6187 Fixes the issue that the application threw NullPointerException when rotating a previously rotated document back to its original position.

Version: 9.7.0

Category ID Description
New feature - Adds the new interface for converting PDF to Word.
PdfToWordConverter converter(inputPath);
converter.saveToDocx(OutputPath);
converter.dispose();
New feature - Adds the new method for converting PDF to HTML.
pdfDocument.getConvertOptions().setPdfToHtmlOptions(bool useEmbeddedSvg, bool useEmbeddedImg)
pdfDocument.getConvertOptions().setPdfToHtmlOptions(bool useEmbeddedSvg, bool useEmbeddedImg, int maxPageOneFile)
Bug SPIREPDF-6008 Fixes the issue that the font size was changed in PowerPoint documents converted from PDF.
Bug SPIREPDF-6035 Fixes the issue that the setting of the crop frame didn't work.
Bug SPIREPDF-6046 Fixes the issue that the keyword search failed.
Bug SPIREPDF-6049 Fixes the issue that the exception threw "Parameter 'emSize' 0.0 is invalid" when searching keywords.
Bug SPIREPDF-6050 Fixes the issue that the content overlapped when converting PDF to HTML.
Bug SPIREPDF-6061 Fixes the issue that the exception threw "No have this JpegTablesMode" when adding images.
Bug SPIREPDF-6073 Fixes the issue that the content was cropped after converting PDF to images.
Bug SPIREPDF-6083 Fixes the issue that the vertical alignment and bottom alignment of text were incorrect in the grid.

Version: 9.6.2

Category ID Description
Bug SPIREPDF-5885 Fixes the issue that that the added text box was not displayed when the document was opened by WPS tools.
Bug SPIREPDF-5966 Fixes the issue that that the program threw java.lang.ClassCastException when converting OFD to PDF.
Bug SPIREPDF-5979 Fixes the issue that program threw a java.lang.NullPointerException when converting OFD to PDF.
Bug SPIREPDF-6015 Fixes the issue that the data was wrong after converting PDF to Excel.
Bug SPIREPDF-6026 Fixes the issue that the font name was incorrect after converting PDF to Word.

Version: 9.5.6

Category ID Description
Bug SPIREPDF-5976 Fixes the issue that the text was truncated when filling cells.
Bug SPIREPDF-5984 Fixes the issue that the application threw "NullPointerException" when converting OFD to PDF.

Version: 9.4.9

Category ID Description
New feature SPIREPDF-5855 Supports determining whether a PDF stream document is encrypted or not.
boolean result = PdfDocument.isPasswordProtected(PDFstream);
Bug SPIREPDF-5323 Fixed the issue that content was cropped after converting PDF to images.
Bug SPIREPDF-5652 Fixed the issue that text content displayed incorrectly due to extra characters before and after the font name when converting PDF to Word.
Bug SPIREPDF-5878 Fixed the issue that a exception "java.lang.NullPointerException: Cannot invoke 'java.io.InputStream.close()' because 'a' is null" occurred when using the product with reflection.
Bug SPIREPDF-5879 Fixed the issue that memory overflowed when converting PDF to images.
Bug SPIREPDF-5914 Fixed the issue that the bold font effect lost after converting PDF to HTML.
Bug SPIREPDF-5926 Fixed the issue that the program threw StringIndexOutOfBoundsException exception when converting PDF to images.

Version: 9.3.11

Category ID Description
Bug SPIREPDF-5221 Optimizes memory usage when compressing images.
Bug SPIREPDF-5727 Fixes the issue that the document size increased a lot after adding watermark.
Bug SPIREPDF-5828 Fixes the issue that the converted PDF/A1A document failed to veraPDF verification.
Bug SPIREPDF-5842 Fixes the issue that the application threw "NullPointerException" when converting PDF to HTML.
Bug SPIREPDF-5861 Fixes the issue that the character overlapped when converting PDF to SVG.
Bug SPIREPDF-5880 Fixes the issue that removing PDF editing permission was invalid.

Version: 9.3.6

Category ID Description
New feature SPIREPDF-5796 Optimizes memory consumption when printing PDF documents.
New feature SPIREPDF-5833 Supports scaling when printing PDF documents.
pdfDocument.getPrintSettings().selectSinglePageLayout
(PdfSinglePageScalingMode.Custom_Sacle, true, customScaling);
Bug SPIREPDF-5536 Fixes the issue that the application threw "java.lang.NullPointerException" when extracting table content.
Bug SPIREPDF-5558 Fixes the issue that some spaces were lost when extracting tables to CSV
Bug SPIREPDF-5750 Fixes the issue that the stamp was lost after loading the document and re-saving.
Bug SPIREPDF-5762 Fixes the issue that the application threw "NullPointerException" when saving encrypted PDF documents.
Bug SPIREPDF-5803 Fixes the issue that the checkbox positions changed after flattening PDF forms.
Bug SPIREPDF-5822 Fixes the issue that the Square annotation types could not set transparency.
Bug SPIREPDF-5827 Fixes the issue that the application threw "OutOfMemoryError" when converting PDFs to PDFA1B after applying a license.
Bug SPIREPDF-5834 Fixes the issue that the application threw "Invalid date string" error when converting PDFs to PDFA3A in Italian environment.

Version: 9.2.5

Category ID Description
New feature SPIREPDF-5706 Optimizes the function of compressing documents.
PdfCompressor compressor = new PdfCompressor(inputFile);
compressor.getOptions().getImageCompressionOptions().setResizeImages(true);
compressor.getOptions().getImageCompressionOptions().setImageQuality(ImageQuality.Low);
compressor.compressToFile(outputFile);
Bug SPIREPDF-5655 Fixes the issue that the characters did not display correctly when converting PDF to Excel files.
Bug SPIREPDF-5767 Fixes the issue that it failed to delete annotations.
Bug SPIREPDF-5776 Fixes the issue that it failed to delete square and circle annotations.
Bug SPIREPDF-5778 Fixes the issue that cell content was lost when the cell was set not to wrap.