News & Releases
|
|

Spire.PDF for Java 2.7.6 supports setting the font of signature
We're pleased to announce Spire.PDF for Java 2.7.6. This version supports to set the font of a signature, supports to convert a multi-page PDF file to a single SVG document, and fixes the issues occurring when converting PDF to Word and HTML. More details are as follows.
New Features:
- Supports setting the font of a signature.
- Supports converting a multi-page PDF to a single SVG document.
signature.setSignDetailsFont(new PdfFont(PdfFontFamily.Times_Roman,10f));
signature.setSignNameFont(new PdfFont(PdfFontFamily.Courier,15));
//define a font to support chinese character.
PdfTrueTypeFont font = new PdfTrueTypeFont (new Font("SimSum",Font.PLAIN,10));
signature.setSignDetailsFont(font);
PdfDocument document = new PdfDocument(inputPath);
document.loadFromFile(inputPath);
document.getConvertOptions().setOutputToOneSvg(true);
document.saveToFile("result.svg", FileFormat.SVG);
Bug Fixes:
- Fixed the issue that caused messy content after converting PDF to Word.
- Fixed the issue that the text of TextBox field could not be returned correctly.
- Fixed the issue that caused incorrect format after converting PDF to HTML.
- Fixed the issue that the Chinese characters could not be found successfully.
- Fixed the issue that caused an exception when converting PDF to HTML.
- Fixed the issue that if the PDF field has a black border, but after converting the PDF to SVG, the whole field became black.
Click the link below to download Spire.PDF for Java 2.7.6: