Skip to content

Generate PDFs

The Generate PDF action creates a PDF every time a workflow runs. You design the document once in the page editor and drop in smart values like the person's name. Each run fills those in and produces a new PDF. You can then attach it to an email, save it on the contact, or open it from the workflow's logs.

Who this is for

Hosts who send personalized documents, like certificates of completion, membership cards, receipts, passes, or confirmation letters, and want them made and sent automatically.

Quick steps

  1. Open a workflow and pick a trigger.
  2. Click Add action, open the Content tab, and choose Generate PDF.
  3. Enter a Document name.
  4. Click Use a template, or click Open editor and pick a page size.
  5. Design the document and add smart values. Click Done.
  6. Click Save.
  7. Add a Send Email action below it. Under Attachments, click Add from workflow and pick your PDF.

The screenshots on this page follow one workflow, built in the example below. When someone orders, it makes a certificate with their name on it and emails it to them:

A workflow named Certificate: the Order Made trigger, then a Generate PDF action, then a Send Email action


Step-by-step walkthrough

1. Add the action

  1. Go to Workflows, then create a workflow or open one and click Edit.
  2. Pick a trigger. Generate PDF works with every trigger. The trigger decides which smart values you can use. See Triggers reference.
  3. Click Add action.
  4. In Choose an action, open the Content tab and click Generate PDF. You can also search for pdf.

The action opens full width. On the left you name the document and open it to design it. On the right, Preview shows the finished document with sample values, its file name, and its paper size, like 8.5" × 11" · 1 sheet.

The Generate PDF action with the document name CE Certificate, the Edit document card, and a preview of the certificate showing Jane Doe

2. Name the document

Type a Document name, like CE Certificate. This becomes the file name, so buyers get CE Certificate.pdf. Renaming here also renames the page in the editor, and the other way around.

If you leave it blank, the file is called Workflow PDF.pdf.

3. Start the document

In the document card, either:

  • Click Use a template and pick one. See Templates.
  • Click Open editor to start blank. Choose a Page size: Letter (portrait) or Letter (landscape). You can't change the size later.

4. Design it

The editor is the same page editor used for emails. The header shows your document name, a PDF tag, Saved once your changes are saved, and the Preview and Done buttons. You design on the left. On the right, Live preview shows the page with sample values in place of your smart values, like Jane Doe for the buyer's name.

The PDF editor with a Certificate of Achievement: a gold heading, a QR code, and Buyer first name and Buyer last name smart value chips. The live preview on the right shows Jane Doe.

Click Add element to add any of these:

Element Use it for
Text Headings, body text, and smart values.
Image Your logo, a signature image, or a background graphic.
QR code A code that holds a fixed value or a smart value, like a member ID.
Button A clickable link, for people who open the PDF on screen.
Table A fixed grid of text. See Limits.
Divider A line between sections.
Social links Clickable icons for your social accounts.

Each page is a sheet. To add more pages, select a sheet and use Add sheet above, Add sheet below, or Duplicate sheet.

5. Add smart values

  • In text: type {{ and pick a smart value from the menu. It shows as a chip, like {{ Buyer first name }}.
  • In a QR code: set Value to Smart value and pick one.
  • In a button: put a smart value in Link URL.

You can use the trigger's smart values and the outputs of earlier actions in the same workflow. The names in the menu depend on the trigger. With Order Made, for example, the buyer's name is Buyer first name and Buyer last name.

Smart values must exist when the workflow runs

A smart value that's blank for a contact prints blank. A smart value that can't be found at all makes the step fail, and the log shows Smart value {{x}} could not be resolved.

6. Preview and save

  1. In the editor, click Preview to download a test PDF. It uses sample values, like Jane Doe, not a real contact.
  2. Click Done to close the editor.
  3. Click Save to save the action.

Save stays disabled until the document has a page. If you see Please fix the attachment errors before saving., open the editor and pick a page size or a template first.


Send the PDF

Each run makes a new PDF. Use it in a later action on the same path of the workflow:

  1. Add a Send Email action below Generate PDF.
  2. Under Attachments, click Add from workflow.
  3. Pick Generate PDF: CE Certificate (your document's name).

It's attached as CE Certificate.pdf. Each person gets their own copy, filled in with their details.

The Send Email attachments section with the Add from workflow menu open on Generate PDF: CE Certificate, and CE Certificate.pdf attached below

The list also has other files your trigger provides, like an order's tickets PDF. The Total size under the upload area only counts files you upload, so a generated PDF shows as 0 Bytes. The counter's 25MB is not the sending limit. The real limit is about 15 MB for the whole email, checked when it sends. See Limits.

  1. Make sure you have a contact property of type File.
  2. Add a Set Contact Property action below Generate PDF.
  3. Pick the File property, choose A smart-value token, and pick Generate PDF: CE Certificate.

The PDF then shows on the contact's profile.

  1. In the Workflows dashboard, click the workflow to open its side peek.
  2. Open the Logs tab.
  3. Find the run and click Open PDF on the Generate PDF step.

Product Purchased makes one PDF per item

The Product Purchased trigger runs once for each unit bought. A buyer who gets three tickets gets three PDFs, one per ticket. Use Order Made if you want one PDF per order.


Templates

Templates let you reuse a design across workflows.

  • Use a template: opens the template gallery. Click Use on a template to copy it into this document. Templates marked Starter are made by 3Common. You can use and copy them, but not edit them.
  • Save as template: saves this document's design so you can use it again.
  • New template (in the gallery): name it, pick its page size, and click Create & edit.

Using a template copies it. Later changes to the template don't change documents made from it.

Using a template replaces what's there

If your document already has content, you'll see Replace document content? Clicking Replace content overwrites it, and this can't be undone.


Example: a certificate for every buyer

This is the workflow in the screenshots on this page. Right after someone orders, they get an email with a certificate that has their name on it.

  1. Go to Workflows and create a workflow. Name it Certificate.
  2. Trigger: pick Order Made.
  3. Generate PDF: add the action and name the document CE Certificate. Click Open editor and choose Letter (portrait). Add:

    • a Text heading, Certificate of Achievement
    • a QR code, with a smart value such as the order's ID
    • a Text line, This certifies that {{ Buyer first name }} {{ Buyer last name }} has successfully completed the program

    Click Done, then Save. 4. Send Email: add the action below Generate PDF. Use Buyer email ({{order.email}}) as the recipient and Your certificate as the subject. Under Attachments, click Add from workflow and pick Generate PDF: CE Certificate. Click Save. 5. Click Create to save the workflow.

Each buyer gets their own CE Certificate.pdf.

Keep a copy on the contact

Add a Set Contact Property action after Generate PDF to save the certificate to a contact File property. See Send the PDF.


Limits

Limit Details
Page size Letter only, portrait or landscape. One size per document.
Font PDFs use one font, similar to Arial.
Tables Table cells are fixed text. A table can't add a row for each item in an order. To list items, put a smart value like {{order.product.names}} in a text element instead.
Images Up to 10 MB per image.
Email attachments About 15 MB for all attachments on one email, checked when the email sends. The Total size counter in the email editor only counts files you upload, not PDFs the workflow makes.
File name The document name, up to 120 characters. Characters that can't go in a file name become -. The name is the same for everyone.

PDFs are shared by link

Anyone with a PDF's link can open it. Avoid putting information in a document that shouldn't be seen by someone it's forwarded to.


Troubleshooting

Save is greyed out

The document doesn't have a page yet. Click Open editor and pick a page size, or click Use a template. Then click Done and Save.

My PDF isn't in the Add from workflow list

The Generate PDF action has to come before the Send Email action, on the same path. If it's inside a different If/Then branch, the email can't see it.

The step failed because a smart value could not be resolved

The document uses a smart value the trigger doesn't provide. Check which smart values your trigger offers in Smart values, and remove or replace the one named in the error.

The email failed because the attachment is too large

The log shows The email's attachments are too large to send: encoded, they come to more than 20MB. That's about 15 MB of files. Use smaller images in the document, or send fewer attachments on one email.

I changed the template, but my workflow still sends the old design

Documents made from a template are copies. Open the Generate PDF action and use the template again, or edit the document directly.