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
KrishSinghKrishSingh 

Create PDF

How I can generate pdf from visualforce?

 

Best

Krish

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

You just need to do this :

 

 

<apex:page renderAs="PDF" standardController="Account">
</page>

 

 

Now when you run this your visualforce page will render as pdf.

 

For more info to format your pdf, see this :

 

http://forceguru.blogspot.com/2010/12/header-footer-in-pdf.html

 

 

Thanks
Ankit Arora

 

All Answers

Ankit AroraAnkit Arora

You just need to do this :

 

 

<apex:page renderAs="PDF" standardController="Account">
</page>

 

 

Now when you run this your visualforce page will render as pdf.

 

For more info to format your pdf, see this :

 

http://forceguru.blogspot.com/2010/12/header-footer-in-pdf.html

 

 

Thanks
Ankit Arora

 

This was selected as the best answer
KrishSinghKrishSingh

Thanks Ankit_Arora,

 

I have some questions related to this, will pull them over here soon. Please help me to sort out things.

 

Best

Krish

Ankit AroraAnkit Arora

Sure Krish, would love to help you out.

 

 

Thanks
Ankit Arora