When converting an Excel spreadsheet to PDF using jOfficeConvert, there are a few options that can be set through the ExcelConvertOptions class: Option to create a bookmark for each worksheet Option to set the layout of the page (fit to page, width or height) Option to set a maximum number for the output PDF Here […]
Articles Tagged: Conversion
Convert Microsoft Excel to Adobe PDF in Java
Released September 2017! Qoppa Software library jOfficeConvert is a 100% Java library which can render Excel Spreadsheets (xlsx), convert Excel Spreadsheets to PDF or to images. jOfficeConvert can also render and convert Microsoft Word Documents (*.doc, *.docx) to PDF or images. Try Excel to PDF Conversion Now!
Convert PDF document to PNG image files
This java program uses Qoppa’s jPDFImages to convert a PDF to PNG image files. A PNG image is created for each page contained in the PDF document. // open PDF document PDFImages pdfDoc = new PDFImages ("C:\\myfolder\\input.pdf", null); // loop through pages for (int count = 0; count < pdfDoc.getPageCount(); ++count) { // convert current […]
Convert a Text File to PDF using Free jPDFWriter with word wrapping and pagination
This sample java program uses jPDFWriter to open a text file and create a PDF file from the text contained in the text file. It takes care of wrapping text into lines and of creating new pages as needed (pagination). // Page dimensions and margins, in inches float pageWidth = 8.5f; float pageHeight = 11f; […]
Convert a PDF document to a single HTML page
Q: Is it possible with jPDFWeb to convert a whole PDF document to single HTML output file? A: Yes, Qoppa’s Java PDF library, jPDFWeb, can export each page of a PDF document as an SVG element. It is then simple to add HTML header and tags around all the SVG elements to make it a […]
Code Sample: Convert PDF to Tiff in Java
This Java program converts a PDF file to a multi-page TIFF file using Qoppa’s library jPDFProcess. package jPDFProcessSamples; import java.io.FileOutputStream; import com.qoppa.pdf.TIFFOptions; import com.qoppa.pdfProcess.PDFDocument; public class PDFToTIFF { public static void main (String [] args) { try { PDFDocument pdfDoc = new PDFDocument ("input.pdf", null); TIFFOptions options = new TIFFOptions (150, TIFFOptions.TIFF_PACKBITS); FileOutputStream outStream = […]
Code Sample: Convert a PDF document to JPEG files in Java
This Java program converts a PDF file to multiple JPEG files using Qoppa’s library Java PDF image library jPDFImages. This program loops through the pages contained in a PDF document and outputs a JPEG image for each PDF page. In this program, the resolution is set to 150 dpi and the JPEG quality to 0.8. Both […]