Spire. PDF for Java

Spire. PDF for 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.

Free Trail to evaluate Spire.PDF for Java here:

Version: 4.8.7

Category ID Description
New feature - Supports converting PDF to OFD.
pdf.saveToFile(output, FileFormat.OFD)
Bug SPIREPDF-3985 Fixes the issue that the fonts were incorrect after converting PDF to Word.
Bug SPIREPDF-4146 Fixes the issue that the content was missing after converting PDF to Word.
Bug SPIREPDF-4324 Fixes the issue that the application threw the error "Value cannot be null" when converting PDF to PDFA1A.
Bug SPIREPDF-4342 Fixes the issue that an image was missing after converting PDF to PDFA1A/PDFA1B.
Bug SPIREPDF-4358 Fixes the issue that the application threw the error "NullPointerExcetion" when replacing fonts in  PDF files.
Bug SPIREPDF-4359 Fixes the issue that the application threw the error "type is not supported" when replacing fonts in PDF files.
Bug SPIREPDF-4464 Fixes the issue that the output file name was incorrect after converting PDF to HTML.
Bug SPIREPDF-4473 Fixes the issue that the generated file did not conform to the standard of PDFA1B after converting PDF to PDFA1B.
Bug SPIREPDF-4478 Fixes the issue that an error prompted when opening the result file after adding digital signatures to PDF.
Bug SPIREPDF-4486 Fixes the issue that the it returned null when getting the locale after finding text.
Bug SPIREPDF-4493 Fixes the issue that the barcode added to PDF couldn't be recognized.
Bug SPIREPDF-4522 Fixes the issue that the application threw the error "NullPointerExcetion" when converting PDF to PDFA1A.
Bug SPIREPDF-4527 Fixes the issue that the signing time was incorrect when opening the result file in Foxit Reader after adding digital signatures.
Bug SPIREPDF-4530 Fixes the issue that the application threw the error "type is not supported" when getting the used fonts.
Bug SPIREPDF-4542 Fixes the issue that the application threw the error "IllegalArgumentExcep" when drawing the grid.

Version: 4.7.8

Category ID Description
Bug SPIREPDF-4318 Fixes the issue that the content format was incorrect after converting PDF to Word.
Bug SPIREPDF-4332 SPIREPDF-4411 Fixes the issue that the application threw the error "Has no define cmap char" when extracting text from PDF.
Bug SPIREPDF-4355 Fixes the issue that the setExportTextOCRHandler method failed to pass images.
Bug SPIREPDF-4407 Fixes the issue that the content was incorrect after converting PDF to PDF/A1A.
Bug SPIREPDF-4443 Fixes the issue that the generated image was blank after converting PDF to images.
Bug SPIREPDF-4451 Fixes the issue that the application threw the error "NullPointerException" when extracting text from PDF.
Bug SPIREPDF-4458 SPIREPDF-4461 Fixes the issue that the file size of the resulting files was too large after splitting the PDF file.

Version: 4.6.8

Category ID Description
New feature SPIREPDF-4350 Supports saving PDF documents to stream after merging.
PdfDocumentBase pdfDocumentBase = PdfDocument.mergeFiles(inputFiles);
pdfDocumentBase.save(outputStream);
Bug SPIREPDF-4243 Fixes the issue that the content was incorrect after converting PDF to images.
Bug SPIREPDF-4298 Fixes the issue that the application threw the error "StackOverflowError" when replacing images in PDF files.
Bug SPIREPDF-4314 Fixes the issue that the output file couldn't be opened normally after converting PDF to Excel stream.

Version: 4.5.10

Category ID Description
Bug SPIREPDF-4260 Fixes the issue that the content of the PDF document was lost after adding the watermark.
Bug SPIREPDF-4257 Fixes the issue that it failed to fill the field of the PDF/A document.
Bug SPIREPDF-4233 Optimizes the size of the generated file when converting PDF to HTML.

Version: 4.4.8

Category ID Description
New feature SPIREPDF-4194 Adds a new method to remove JavaScript scripts.
PdfDocument pdf = new PdfDocument();
pdf.loadFromFile(input);
pdf.removeDocumentJavaScript();
pdf.saveToFile(output, FileFormat.PDF);
Bug SPIREPDF-4104 Fixes the issue that the extracted text was incorrect.

Version: 4.4.5

Category ID Description
New feature SPIREPDF-4174 Supports returning all rectangular area information when searching for warp text.
PdfDocument doc = new PdfDocument(); doc.loadFromFile(inputFile); 
FileWriter fileWriter = new FileWriter(outputFile, true); 
int index=0; 
for (PdfPageBase page : (Iterable) doc.getPages())
 { 
index++; PdfTextFind[] results = page.findText("findtext", EnumSet.of(TextFindParameter.CrossLine)).getFinds(); 
for (PdfTextFind text : results) 
{ 
text.applyHighLight(); List bounds = text.getTextBounds();
 String context=""; 
for (Rectangle2D rectangle2D:bounds)
 { 
context +="current "+index+" page;content:"+text.getSearchText()+ ";X:="+rectangle2D.getX()+","+"Y:="+rectangle2D.getY()+","+ "Width:="+rectangle2D.getWidth()+","+"height:="+rectangle2D.getHeight()+"\r
"; 
} System.out.println(context); fileWriter.write(context); fileWriter.flush(); 
} 
} fileWriter.close(); doc.saveToFile(outputPdf);
Bug SPIREPDF-3996 Fixes the issue that it consumed too much memory when adding watermarks to the document through a loop.
Bug SPIREPDF-4060 Fixes the issue that the content was overlapped when converting PDF to Word.
Bug SPIREPDF-4125 Fixed the issue that the application threw the error "Value cannot be null" when converting PDF to PDF/A-3B.
Bug SPIREPDF-4128 Fixed the issue that the application threw an exception when adding the watermark to PDF.
Bug SPIREPDF-4132 Fixed the issue that the generated file did not conform to the standard of PdfA1A after converting PDF to PDFA1A.
Bug SPIREPDF-4138 Fixed the issue that the content was incorrect after converting PDF to PDF/A.

Version: 4.3.4

Category ID Description
Bug SPIREPDF-4060 Fixes the issue that the content was overlapped when converting PDF to Word.