Skip to content

Quickstart: your first document

By the end of this quickstart you’ll have a real invoice template, a finished PDF, and — the part that matters most — a second PDF for a different customer from the same template. That last step is the whole point of Pagr: you design a document once and render it as many times as you like with different data.

We’ll use an invoice, but every step works the same for contracts, reports, letters, or anything else.

From the Dashboard or the Templates page, click + New Template. In the panel:

  • Project — leave it on “My first project” (created for you when you signed up).
  • Template name — give it a name, for example Quickstart – Invoice.
  • Starting point — choose Blank.

Click Save. The template opens in the editor.

The New Template panel with a name filled in and the Blank starting point selected

2. Describe your document to the AI Assistant

Section titled “2. Describe your document to the AI Assistant”

The AI Assistant on the left is the fastest way to build from a blank template. Type what you want into the Describe what you want… box and send it — even a short prompt works:

Make me a professional invoice with our company logo at the top, billing details for the customer, a table of line items with quantity and price, and a total at the bottom.

The assistant shows a short plan, then builds the template. It may even pull in a matching logo from your Image Gallery and ask you to pick one. Every reply has an Undo button, so you can revert any single change.

The AI Assistant building the invoice, with its plan and an Undo button

On the right, the Preview area has a Test / Production toggle. Click Test to open the render form.

This form is worth pausing on: it’s the template’s variables, pre-filled with the sample data the assistant set up — customer name, invoice number, line items, and so on. Adjust any values you like, then click Render.

The Test Render form with the variables pre-filled with sample data

Your render is saved under Output → Renders. Open it there to see the finished document — a clean invoice with your logo, the customer details, the line-item table, and the total. Because it was a test render, it carries a Pagr-test-render watermark.

The rendered invoice PDF with the test-render watermark

That’s a document you could send, five minutes in. Now let’s make it yours.

You don’t have to describe every change in words. Hover over any element in the preview and Pagr outlines it and shows a small action bar. From there you can ask AI about just that element, edit its content, reorder it, or delete it.

Try it on the invoice heading: hover it, click the sparkle icon, and type “make this bold and dark blue”.

The invoice heading outlined in the preview, with a row > text breadcrumb above it and the action bar alongside

The little row > text trail above the element shows where it sits in the document’s structure. Click a step in it to select the whole row instead of just the text inside it.

Because the change is scoped to what you clicked, short instructions work — you don’t have to explain where the thing is. See Edit from the preview.

Switch to the Sample Data tab in the middle of the editor (you’re in Studio view — see Studio and Canvas).

Here’s the idea that makes everything else click: sample data isn’t the content of your document — it’s an example of the shape of your data. The template refers to each field by name, with placeholders like {{customerName}}. Change the values and nothing about the design changes; change the names and you’re redefining what the template expects.

Replace the sample values with something of your own and watch the preview follow along — below, editing customerName, customerAddress, and customerEmail is all it takes to bill someone else.

The Sample Data tab with the invoice’s fields edited, and the preview showing the new customer in the Bill To block

Notice how lineItems is a list of objects, each with a description, quantity, and price. That’s how a table with a variable number of rows works — the template repeats the row for every entry you send.

See Variables & data for the full picture.

This is the step that shows what Pagr actually is.

Click Test again to open the render form. This time, don’t accept the pre-filled values: change the customer name, the invoice number, and a line item or two. Click Render.

You now have a second, completely different invoice — from the same template, with no design work in between. Both appear in Output → Renders, one row each.

The Renders list with several renders of the same template version, and a detail panel showing the render data behind one of them

Open a render from that list and you can see the exact Render data that produced it, alongside the System data Pagr injected automatically — the date, the day of the week, your organisation and template name. Useful when you need to work out why a particular document came out the way it did.

That’s the loop your real workflow runs on: design once, then render per customer, per month, per order. When you’re ready to do it from your own software instead of by hand, the API does exactly this — send data, get a PDF back.

Happy with it? Publish the version so it’s ready for production use. Expand the template’s row on the Templates list and click the Publish action on the version (you can also publish from inside the editor).

Pagr asks you to confirm. Note the one catch:

After you confirm, the version’s status changes to Published, and its Published at and Published by are recorded. Your live integration renders this published version.

The version row showing the Published status with Published at and Published by

You’ve built a template, rendered it twice with different data, and published it. From here: