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

2 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