function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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?

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".

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!

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

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.




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.


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
I'm sure you will definitely find the service useful and easy to use.