Feb 5, 2015

Image to PDF Converter in Salesforce

Okay, so this is one of my POCs I was doing recently where I need to convert an image to PDF. I can't disclose the full use case but hope it will help some.

So here is the solution in two simple steps :

1) First insert these three static resources (with the same names)

(i) Bootbox




2) Visualforce Page

 
    
    
    
    
    
    
    
    
    
    
      
 
     
        
        
    
    
    
    
 

    

 

(As it was just a POC so code is not clean yet, hope you can take care of that)

Okay so now all set to go, just hit the page and select any image you want to get converted in PDF. Multiple images can also be uploaded.

Cheers

14 comments:

  1. Hi Ankit, this works really well!! I'm just wondering if its possible to select image files from a salesforce record instead of from your local drive?

    ReplyDelete
  2. Very informative blog and very useful article thank you for sharing with us , keep posting learn more about salesforce training,salesforce online training

    ReplyDelete
  3. I acknowledge the author for his brilliant work for making this exceptionally useful and informative content to guide us.
    salesforce integration

    ReplyDelete
  4. Our online tool allows you to convert PDF documents to JPG images for free. No downloads required.

    If you want more information to click here pdf to jpg

    ReplyDelete
  5. if you need choose the PDF and image conversion tools,you can try this pdf to image SDK from www.cnetsdk.com.

    ReplyDelete
  6. pdf libraryCreate high quality PDFs with SelectPdf Html To Pdf Converter from the best PDF library. HTML to PDF API also available

    ReplyDelete
  7. Sensible content on your blog. Very useful post for all information seekers. Keep updating the blog with nice content.
    Thanks
    Affiliate marketing

    ReplyDelete
  8. Thanks for providing about this RTF to PDF Converter it is very useful to us.

    ReplyDelete
  9. Nice content.
    convert image to pdf free Effortlessly transform images into PDFs at no cost with this amazing tool! Experience the convenience today

    ReplyDelete