getContentAsPDF()

Returns the page as a PDF, regardless of the <apex:page> component’s renderAs attribute.

Signature

public Blob getContentAsPDF()

Return Value

Type: Blob

Usage

This method can’t be used in:
  • Triggers
  • Test methods
  • Apex email services
Previous
Next