How to convert multiple images into a single pdf file

A N M Bazlur Rahman



I had some images that I needed had to export as pdf. I looked in the app store to find a free tool that makes it possible for me. However, after a quick search, I was not satisfied with the result. The Apps that support such things come at a hefty price tag. Then it hits me. Why not I write a few lines of java code and export pdf with ITextPdf library.

Well, that’s it. Five minutes of working helped me to save quite a few bucks.

Here is what I have got -


for copy/paste pleasure:
I have used ITextPdf library for this purpose, and the dependency is-

implementation group: 'com.itextpdf', name: 'itextpdf', version: ''


Share on: