CWP\PDFExport\Extensions\PdfExportControllerExtension
Synopsis
class PdfExportControllerExtension
extends Extension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public HTTPResponse|false downloadpdf()
- public string getPDFBaseURL()
- public string getPDFProxy()
- public HTTPResponse|false generatePDF()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_actions
Methods
public
- downloadpdf() — Serve the page rendered as PDF.
- generatePDF() — Render the page as PDF using wkhtmltopdf.
- getPDFBaseURL() — This will return either pdf_base_url from YML, CWP_SECURE_DOMAIN from _ss_environment, or blank. In that order of importance.
- getPDFProxy() — Don't use the proxy if the pdf domain is the CWP secure domain or if we aren't on a CWP server