Which code displays the contents of a Visualforce page as a PDF?

Which code displays the contents of a Visualforce page as a PDF?
A . <apex:page contentType="pdf">
B . <apex:page rendersAs="application/pdf">
C . <apex:page contentType="application/pdf">
D . <apex:page renderAs="pdf">

Answer: D

Explanation:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm

You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the <apex:page> tag. <apex:page renderAs="pdf">

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments