Which code displays the contents of a Visualforce page as a PDF?
A.
B.
C.
D.
The Answer Is:
A
This question includes an explanation.
Explanation:
Comprehensive and Detailed Explanation From Exact Extract:
A (Correct):The renderAs="application/pdf" attribute in the tag instructs the Visualforce page to render the content as a PDF file when accessed.
Example:
Invoice
Incorrect options:
B:renderAs="pdf" is incorrect; the correct MIME type is application/pdf.
C/D:contentType controls headers but doesn't render the content as PDF.
[Reference:Visualforce Developer Guide – Generating PDFs, This is part of theUser Interface (25%)section of the exam, especially aroundVisualforce rendering and presentation logic., , , ]
PDI PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"