We're off to DotAll 2022 in Brooklyn NY (plus a little extra sightseeing time). Our support will be limited.


Gift Voucher uses the Dompdf (opens new window) library implemented in Craft Commerce to generate PDF files. You can manage some of the Dompdf options through a configuration file.

Create a file named giftvoucher.php in your craft/config directory. As with any configuration option, this supports multi-environment options.

return array(
    '*' => array(
        // 'letter', 'legal', 'A4', etc.
        'pdfPaperSize' => 'letter',

        // 'portrait' or 'landscape'
        'pdfPaperOrientation' => 'portrait',

        // true|false
        'pdfAllowRemoteImages' => true,

Configuration options#

  • pdfPaperSize - handles the PDF paper size. You can find a full list of available sizes under Dompdf\Adapter\CPDF::$PAPER_SIZES (opens new window)
  • pdfPaperOrientation - the PDF paper orientation, either portrait or landscape
  • pdfAllowRemoteImages - option to enable/disable remote images in PDFs.

Previous ← Requirements Next Vouchers →

Get started with Gift Voucher

Available for Craft 4. Get it from the plugin store.