# Need to convert Image file into PDF

**URL:** <https://community.automationedge.com/t/need-to-convert-image-file-into-pdf/133>\
**Category:** Get Help & Discuss\
**Created:** [February 12, 2018, 5:21am UTC](https://community.automationedge.com/t/need-to-convert-image-file-into-pdf/133 "2018-02-12T05:21:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trupti.Mohite](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@Trupti.Mohite](https://community.automationedge.com/u/Trupti.Mohite)\
**Post date:** [February 12, 2018, 5:21am UTC](https://community.automationedge.com/t/need-to-convert-image-file-into-pdf/133/1 "2018-02-12T05:21:08Z")

</div>

Hi,  
We have a one scenario where want to convert image  
(jpg/jpeg/png) file into PDF format.

We have tried that using ITextPDF Jar, but because of its  
Commercials we cannot use it at Client Site.

If anyone knows the solution, kindly let us know.

Thanks & Regards,  
Trupti

---

<div class="post-metadata">

**Author:** ![rohini.deshpande](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@rohini.deshpande](https://community.automationedge.com/u/rohini.deshpande)\
**Post date:** [February 12, 2018, 5:23am UTC](https://community.automationedge.com/t/need-to-convert-image-file-into-pdf/133/2 "2018-02-12T05:23:12Z")

</div>

Hi,

You can use PDFBox library, here is the code for the  
same

> <https://stackoverflow.com/questions/22358478/java-create-pdf-pages-from-images-using-pdfbox-library>

Regards,  
Rohini
