visualforce page as a pdf
Rendering visualforce page as a pdf
How can you rendering vf page as a pdf? By using renderAs attribute you can render visualforce page as a pdf.
Where we can use renderAs attribute? We can use renderAs attribute in apexPage tag like below.
<apex:page StandardController=”Account ” renderAs=”pdf”>
Below is simple code to rendering a visualforce page as pdf.
<apex:page renderAs=”pdf”>
<center>
<h1>Welocome to Salesforce Tutorial</h1>
</center>
</apex:page>
<center>
<h1>Welocome to Salesforce Tutorial</h1>
</center>
</apex:page>
Below is the output for this.
Post a Comment