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
Phuc Nguyen 18Phuc Nguyen 18 

Print VF page as pdf

Hello,
I have a VF page where I want to add a button to allow the user to open the print dialog to print the VF page as a PDF.  I am using slds and unsure how to use use the slds action button.
Any suggestions would be appreciated.
P
Foram Rana RForam Rana R
Hi Phuc,

Add renderAs="pdf" attribute in apex:page tag.
Mark it as best answer if it works.

Thanks,
Foram Rana