Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
Which code displays the contents of a Visualforce page as a PDF?
Correct Answer: C
You can render any page as a PDF by adding the renderAs attribute to the <apex:page> component, and specifying "pdf" as the rendering service1. For example: <apex:page renderAs="pdf">. You can also use the PageReference.getContentAsPDF() method in Apex to render a Visualforce page as PDF data, and then use Apex code to convert that PDF data to an email attachment, a document, a Chatter post, and so on2. References: * 1: Render a Visualforce Page as a PDF File | Visualforce Developer Guide | Salesforce Developers * 2: Render a Visualforce Page as PDF from Apex | Visualforce Developer Guide | Salesforce Developers