Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 585 Bytes
title type order
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.