+ Start a Discussion
Sam.arjSam.arj 

Populating PDF forms with Salesforce data

I have a PDF form with various checkbox, text and dropdown controls.


I need to populate some of these fields before view it to user and then the user needs to fill out the rest of the fields left empty.

 

Standard Visualforce "RenderAs" PDF does not seem to be the solution.

 

 

Has anyone had any exprience with the above problem?

SteveAnderson41SteveAnderson41
Do you mean something like the Quote2PDF sample?  From the post about the sample, "Complete the form and save it. Notice that the line items were copied over (if the opportunity had line items). Now click on the 'Generate Printable Format' button which will call the Visualforce page which will be converted to a PDF".
Sam.arjSam.arj

No! In that sample a new PDF is built from scratch, while the requirement is to get a PDF template with form elements and populate data into those PDF form elements such as Check Boxes, Text Boxes, etc.

 

A sample solutions were suggested by Ron however the link does not work anymore!

 

http://blog.sforce.com/sforce/2008/12/use-visualforce-and-apex-to-populate-pdf-forms.html

SteveAnderson41SteveAnderson41
Sorry, I didn't realize that you were starting with a PDF, rather than a Visualforce page.
learnSFlearnSF

Hi Sam,

 

Did you find any work around this?

 

I also stuck at render pdf and then after user wants to fill check box.

 

While rendering checkbox ,this checkbox does not appear at all.

 

Let me know if you have nay trick to work.

 

Thanks,

rforce2rforce2

If you are looking for populating existing PDF Forms with data from salesforce, you should consider using the PerForm app - it uses the XFDF format to populate forms, and you can define the conditions for selection of checkboxes.

http://sites.force.com/appexchange/listingDetail?listingId=a0N30000003GLHrEAO

EliejulzEliejulz

I have just recently come across a service which allows you to fill out PDF forms online without having to download any software. I was able to print out my document and even fax it online. Please check this website http://goo.gl/affwA6
I'm sure you will definitely find the service useful and easy to use.