Dev: Convert Single/Multiple Image to PDF in Salesforce


Image Source- here


Hello Salesforce Wizards!

This is the fun post where i will share the code that how you can create image to pdf converter using vf page.In this post, I am using Javascript FileReader API.The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. For more information about FileReader object, you can read here.

Requirement : - Please download the static resource from here. Also, rember the name of the static resource be - imgTopdf


Visualforce Code :-


Output - 



You can also use multiple images to convert them into single PDF.

Please comment for more tutorial topics.
Thanks.
Keep reading.


Next Post Previous Post
No Comment
Add Comment
comment url