News & Releases
|
|

Spire.PDF for Java 2.1.3 supports printing PDF file and converting PDF to Word/Html
We are pleased to announce that Spire.PDF for Java 2.1.3 is released today. This new version supports printing PDF document and converting PDF format files to Word/Html format files. See the content below for more details.
New Features:
- Supports converting PDF to Word.
- Supports converting PDF to HTML.
- Supports printing PDF document.
pdf.saveToFile(outputFile,FileFormat.DOCX); pdf.saveToFile(outputFile,FileFormat.DOC);
pdf.saveToFile(outputFile,FileFormat.HTML);
PdfDocument loDoc = new PdfDocument(inputFile); PrinterJob loPrinterJob = PrinterJob.getPrinterJob(); PageFormat loPageFormat = loPrinterJob.defaultPage(); Paper loPaper = loPageFormat.getPaper(); loPaper.setImageableArea(0,0,loPageFormat.getWidth(),loPageFormat.getHeight()); loPrinterJob.setCopies(1); loPageFormat.setPaper(loPaper); loPrinterJob.setPrintable(loDoc,loPageFormat);
Click the link below to download Spire.PDF for Java 2.1.3: