Convert Pdf to Image file using Java

Introduction This tutorial will show you how to convert pdf to image file using Java. For this I am using here pdfbox API. Java pdf to image example will show you step by step conversion procedure. In the recent version (2.0.20) of the pdfbox library many methods were removed along with getAllPages() and convertToImage() methods. In this example I will show you how to convert PDF file into Image file using 1.8.3 as well as 2.0.20 versions of pdfbox library.

Continue

Convert Image to Pdf file using Java

Introduction This tutorial will show you how to convert image to pdf file. For this I am using here itext API. The example Java image to pdf file will show you the step by step procedures for image to pdf conversion. We will build the application using both gradle and maven tools. In this example we will align the images in the center of the pdf page. If the image width goes outside of pdf page then we will fit the image within the size of the pdf document page.

Continue