News & Releases
|
|

Spire.PDF for Java 3.10.5 supports getting PDF watermark
We are glad to announce the release of Spire.PDF for Java 3.10.5. This version optimizes conversion time for PDF to Image and the time of adding text watermark into PDF, supports getting PDF watermark and inserting SVG to PDF, and also fixes the issues occurred when converting PDF to Word/Image. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| Optimization | SPIREPDF-3387 SPIREPDF-3620 |
Optimizes conversion time for PDF to Image. |
| Optimization | SPIREPDF-3569 | Optimizes the time for adding text watermark into PDF |
| New feature | SPIREPDF-3390 | Supports getting PDF watermark.
PdfDocument pdf = new PdfDocument();
pdf.loadFromFile(outputFile);
PdfAnnotationCollection annotationWidget= pdf.getPages().get(0).getAnnotationsWidget();
StringBuffer stringBuffer = new StringBuffer();
for(int i=0;i < annotationWidget.getCount();i++){
if (annotationWidget.get(i) instanceof PdfWatermarkAnnotationWidget){
stringBuffer.append(annotationWidget.get(i).getText()+"\r\n");
}
|
| New feature | SPIREPDF-3596 | Supports inserting SVG to PDF.
String inputFile_svg = "data/sample.svg"; String inputFile_pdf = "data/sample.pdf"; String outputFile = "result.pdf"; PdfDocument doc1 = new PdfDocument(); doc1.loadFromSvg(inputFile_svg); PdfDocument doc2 = new PdfDocument(); doc2.loadFromFile(inputFile_pdf); PdfTemplate template = doc1.getPages().get(0).createTemplate(); template.draw(doc2.getPages().get(0).getCanvas(), new Point2D.Float()); doc2.saveToFile(outputFile, FileFormat.PDF); |
| Bug | SPIREPDF-3540 | Fixes the issue that finding keywords failed. |
| Bug | SPIREPDF-3558 | Fixes the issue that the memory kept growing when converting PDF to Image. |
| Bug | SPIREPDF-3616 | Fixes the issue that the application got stuck when converting PDF to Image. |
| Bug | SPIREPDF-3624 | Fixes the issue that the application threw "java.lang.NullPointerException" when extracting text from PDF pages. |
| Bug | SPIREPDF-3629 SPIREPDF-3632 |
Fixes the issue that the application threw "outofmemeory" when extracting text from a PDF file that has problematic font. |
| Bug | SPIREPDF-3639 | Fixes the issue that the application threw "java.lang.NullPointerException" when converting PDF to Word. |
Click the link below to download Spire.PDF for Java 3.10.5: