Spire.PDF for Java 3.6.6

Spire.PDF for Java 3.6.6 supports converting HTML to PDF with QT plugin

We're pleased to announce the release of Spire.PDF for Java 3.6.6. This version supports converting HTML to PDF with QT plugin, and it also supports setting the username and password of the timestamp server when digitally signing a PDF document. Besides, some issues that occurred when converting PDF to Word, extracting text and images are successfully fixed. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPDF-2187
SPIREPDF-2606
SPIREPDF-2961
Supports converting HTML to PDF with QT plugin.
String url = "http://www.wikipedia.org/";
String fileName = "D:/output.pdf";
String pluginPath = "D:/Qt/plugins_64";
HtmlConverter.setPluginPath(pluginPath);
HtmlConverter.convert(url,fileName);
New Feature SPIREPDF-3261 Adds the method "setExportTextOCRHandler" to support calling external OCR API to extract text from image when extracting PDF text.
IOCR loIOCR=(image)->{
    String extractedText = "";
    //OCR API
    //extractedText = ...
    return extractedText;
};
PdfDocument.setExportTextOCRHandler(loIOCR);
PdfDocument pdf=new PdfDocument();
pdf.loadFromFile(inputPath);
String text = "";
for (PdfPageBase page : (Iterable) pdf.getPages()) {
    text += page.extractText();
}
FileWriter sw = new FileWriter(outputPath);
sw.write(text);
sw.flush();
sw.close();
pdf.close();
New Feature SPIREPDF-3274 Supports setting the username and password of the timestamp server when digitally signing a PDF document.
String url = "https://freetsa.org/tsr";
signature.configureTimestamp(url,"user_name","password");
Bug SPIREPDF-3186 Fixes the issue that the signature information was not displayed correctly when digitally signing a PDF document.
signature.removeShowConfigureText(SignatureConfigureText.Distinguished_Name);
Bug SPIREPDF-3208 Fixes the issue that the application threw the "OutOfMemoryError" when extracting images from PDF document.
Bug SPIREPDF-3241 Fixes the issue that the content of Word document was lost after converting from PDF to Word.
Bug SPIREPDF-3277 Fixes the issue that the application threw the "NullPointerException" when extracting text from PDF document.
Bug SPIREPDF-3298 Fixes the issue that the application threw the exception "The request timed out" when digitally signing a PDF document on CentOS.
Bug SPIREPDF-3303 Fixes the issue that the image color became dark when loading the image using BufferedImage.
Bug SPIREPDF-3317 Fixes the issue that the application threw the "OutOfMemoryError" when converting PDF to image.
Click the link to download Spire.PDF for Java 3.6.6:
Click the link to download QT plugin: