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
Amit ChaudharyAmit Chaudhary 

I want to create a page block as PDF in vf page , How can i do it ?

I have created a page block and  it contain data table and i want to print it in PDF formate .  
Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
Use RenderAs="PDF attribute.
You can't have a particular page block rendered as PDF,isntead you would need to put that page block in another page and render it as pdf coz salesforce would render the page as pdf(as render as is the attaribute for <apex:page>) not page block.

If this helps,please mark it as best answer to help other