Templating Overview

Basic Usage

Printmaker loads or generates a PDF using the source(s) and settings you provide.

{% set html = "<html>Howdy, world!</html>" %}
{% set settings = { orientation : 'portrait' } %}
{% set pdfUrl = craft.printmaker.pdfFromHtml(html, settings).url %}
{{ pdfUrl }}

All of Printmaker’s PDF-generating methods will return a PdfModel object, which allows you to edit, output, download, save, or send the generated PDF via your template.