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
Michael MMichael M 

Automate filling in PDF?

I have a pdf form, with blank spaces for name, address, etc. Is there a way I can save it (perhaps as a static resource?) and have it autopopulate with fields from my lead object?
Best Answer chosen by Michael M
ANUTEJANUTEJ (Salesforce Developers) 
Hi Michael,

>> https://trailblazer.salesforce.com/ideaView?id=08730000000Brbi

There is an open idea that you can try upvoting so that if it reaches the necessary number of upvotes it can be considered in the future.

>> https://developer.salesforce.com/forums/?id=906F00000008nd6IAA

As mentioned in this above link the best solution would be to make a visualforce page render as pdf but AFAIK in case if you are trying to populate a pdf form that you have I don't think this would be possible as we won't be able to map the input fields to the fields on the object, however, in case of the previously mentioned method of rendering visualforce page as pdf I think you would be able to achieve it.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.

All Answers

ANUTEJANUTEJ (Salesforce Developers) 
Hi Michael,

>> https://trailblazer.salesforce.com/ideaView?id=08730000000Brbi

There is an open idea that you can try upvoting so that if it reaches the necessary number of upvotes it can be considered in the future.

>> https://developer.salesforce.com/forums/?id=906F00000008nd6IAA

As mentioned in this above link the best solution would be to make a visualforce page render as pdf but AFAIK in case if you are trying to populate a pdf form that you have I don't think this would be possible as we won't be able to map the input fields to the fields on the object, however, in case of the previously mentioned method of rendering visualforce page as pdf I think you would be able to achieve it.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
This was selected as the best answer
Michael MMichael M
Thank you Anutej!