Spire.PDF for Java 4.4.5

Spire.PDF for Java 4.4.5 supports returning all rectangular area information when searching for warp text

We are happy to announce the release of Spire.PDF for Java 4.4.5. This version supports returning all rectangular area information when searching for warp text and enhances the conversions from PDF to Word/PDF/A-3B/PDFA1A. More details are listed below.

Here is a list of changes made in this release

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\n"; 
} 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.
Click the link below to download Spire.PDF for Java 4.4.5