All articles

Rendering & export

Export and archive a PDF

Exporting produces the real file — the one you send — and keeps a copy of it in your workspace. It goes through the same rendering as Preview PDF, so an export matches what a preview of the same document and data shows. The one exception is a workspace on a free trial, where every preview is stamped "Trial" and the export is not.

Before you start

  • Exporting exists only in the hosted app (signed in to a workspace). Local mode offers Preview PDF but not Export PDF, and keeps nothing.
  • Exporting needs the editor role or higher.

Export

  1. Open the menu with the caret beside Preview PDF (tooltip Preflight & PDF options), at the right of the bar directly above your document.
  2. Choose Export PDF.

Weft saves the template first if it has unsaved changes or has never been saved, then renders that saved version and archives the PDF. A new tab opens reading Exporting your PDF…, and the PDF appears there when it is ready. You can keep working meanwhile; the button reads Exporting…, and neither PDF action is available until the export finishes.

What the export contains:

  • Content — your latest edits, saved as a new version. Exporting does not publish, so a published template's external button keeps producing the published version.
  • Data — with no data source chosen, the data you are previewing: a sample, sample data you edited, or records you loaded with Use live data. With a data source chosen under Render source in the data pill (the button above the document that names the data you are previewing), Weft fetches the records fresh, reading your CRM as you. It uses the data source as it stood when the template was last saved — see Build a data source.

The check before you export

Weft checks the document for things that would print blank, or not print at all, and lists what it finds at the top of the same menu, problems in red. When there is at least one problem, the menu item reads Export anyway: choose it to export regardless. The check never stops you; it makes sure you have seen what it found.

Click a finding to go to the element it is about. Check before export explains each finding.

Find your exports again

Past exports… — in the same menu, once the template has been saved — lists this template's archived exports, newest first. Each row shows the template version it was rendered from, its page count, its size and when it was made; Open opens it in a new tab.

Only exports are kept. A Preview PDF is never stored, so it does not appear here.

This is the answer to "what exactly did we send them in March?" — the archive keeps the file itself and the version of the template that produced it.

Rendering from outside the editor

A Weft button on a Salesforce record renders the template's published version, not your draft. Exporting never changes what that button produces; publishing does. To publish, open the Save ▾ menu — the caret beside Save, whose tooltip reads Save options — and choose Publish. Publishing freezes both the content and its data source until you publish again.

See Publish a template and Add a Salesforce PDF button.

Troubleshooting

A value is blank that should not be. Check the binding first in Bind fields — trace the value and see whether it resolved or defaulted. If the binding is right and the value comes from a data source, check what your own CRM login can see: an export reads the CRM as the person exporting.

A table header does not repeat across pages. Check in the Paged view rather than Flow; Flow has no pages, so it cannot show a header repeating.

The export is slower than the preview. An export saves first, waits its turn, then renders and archives. Large documents with many images take longer.

Weft says the render took too long. Weft stops waiting after about a minute and a half, but the export carries on. Look for it in Past exports… shortly afterwards.

An export is refused because too many render jobs are running. Several exports are already running in your workspace. Wait a moment and export again.

The export fails because a data source was not part of the template's version. Export saves the document first, so a data source you just created is normally frozen into the version it renders. If you still see this, save the template (⌘S, or Ctrl+S on Windows) and export again.

Export failed for another reason. The message says why. Brief outages are retried automatically before an export is reported as failed. A problem the check reports as This block needs a fix or This document needs a fix stops the PDF rendering until it is fixed.

What next