LiquidPDF
Quote marked as a draft
The template knows nothing about the mark: post.watermark stamps DRAFT across every page after the render, so the reviewed draft and the final quote come from the same template and data. The text is sized to the page diagonal and runs from bottom left to top right. Half a unit on top of the render; /pdf/watermark marks a PDF you rendered earlier.
Free plan, no card. You get your own copy in the editor, published and ready for the API.
Change a value, watch the document follow
This is Formfeed’s template engine, running in your browser. Nothing you type is sent or saved.
Loading the engine …

The document as the engine writes it, in pages as the API prints the PDF from it. Shown here on one sheet. The PDF breaks it into pages.
You get your own copy in the editor, with the example’s data. What you changed here stays on this page.
Rendered result
What this example shows
- The template contains no watermark:
post.watermarkstamps the text across every page after the render, and leaving it out gives the clean quote. - The text is sized to the page diagonal and runs from bottom left to top right;
color,opacityandrotationchange that. - Liquid passes helper arguments after a colon:
dateAdd: 30, "days"sets the validity, andmoneyprints pounds because the template’s currency isGBP. - A PDF that was rendered earlier is marked through
/pdf/watermarkwithout rendering it again. - Post-processing is part of the Starter plan and above, with a test key too; with a live key each step costs half a unit on top of the render.
Helpers used
Template folder
<header>
<p class="brand">{{ company.name }}</p>
<p class="muted">{{ company.street }} · {{ company.city }}</p>
</header>
<h1>Quote {{ quote.number }}</h1>
<p class="muted">
For {{ customer.name }} · issued {{ quote.date | date: "d MMMM yyyy" }} ·
valid until {{ quote.date | dateAdd: 30, "days" | date: "d MMMM yyyy" }}
</p>
<table>
<thead>
<tr><th>Item</th><th class="num">Qty</th><th class="num">Rate</th><th class="num">Amount</th></tr>
</thead>
<tbody>
{% for line in quote.lines %}
<tr>
<td>{{ line.description }}</td>
<td class="num">{{ line.qty }}</td>
<td class="num">{{ line.price | money }}</td>
<td class="num">{{ line.total | money }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr><td colspan="3">Total</td><td class="num">{{ quote.lines | sum: "total" | money }}</td></tr>
</tfoot>
</table>
<p class="notes">{{ quote.notes }}</p>body { font-family: 'Inter', sans-serif; font-size: 10pt; color: #1e293b; }
header { padding-bottom: 6mm; border-bottom: 1px solid #e2e8f0; }
.brand { margin: 0; font-size: 14pt; font-weight: 700; color: #0f766e; }
.muted { margin: 1mm 0 0; color: #64748b; }
h1 { margin: 14mm 0 2mm; font-size: 22pt; }
table { width: 100%; margin-top: 10mm; border-collapse: collapse; }
th { padding: 2mm 1.5mm; border-bottom: 1.5px solid #1e293b; text-align: left; font-size: 8pt; text-transform: uppercase; color: #64748b; }
td { padding: 2.5mm 1.5mm; border-bottom: 1px solid #e2e8f0; }
tfoot td { border-top: 1.5px solid #1e293b; border-bottom: 0; font-weight: 700; font-size: 12pt; }
.num { text-align: right !important; white-space: nowrap; }
.notes { margin-top: 10mm; font-size: 8.5pt; color: #64748b; }<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap">{
"pdf": {
"metadata": {
"title": "Quote {{ quote.number }}"
}
},
"paper": {
"format": "A4"
},
"margin": {
"top": "22mm",
"right": "20mm",
"bottom": "22mm",
"left": "20mm"
},
"locale": "en-GB",
"currency": "GBP"
}{
"company": {
"name": "Fennlor Studio Ltd",
"street": "1 Example Street",
"city": "Exampletown"
},
"customer": {
"name": "Olvarest Ltd"
},
"quote": {
"number": "Q-2026-017",
"date": "2026-09-10",
"lines": [
{
"description": "Discovery workshop",
"qty": 2,
"price": 950,
"total": 1900
},
{
"description": "Design system",
"qty": 1,
"price": 6400,
"total": 6400
},
{
"description": "Front-end build (days)",
"qty": 12,
"price": 720,
"total": 8640
}
],
"notes": "Prices exclude VAT. Travel is billed at cost."
}
}Render it through the API
Save the sample data as data.json and send it with the template’s name. Each language uses its SDK; curl sends the same JSON to the REST API, as any other language can. Post-processing needs the Starter plan or above: the Free plan answers 403, with a test key as well. Renders with a key that starts with ff_test_ are not metered.
jq '{template: "quote", data: ., post: {watermark: {text: "DRAFT"}}}' data.json \
| curl https://api-eu.formfeed.dev/v1/renders \
-H "Authorization: Bearer ff_live_..." \
-H "Content-Type: application/json" \
--data-binary @-import { Formfeed } from '@formfeed/sdk';
import data from './data.json' with { type: 'json' };
const formfeed = new Formfeed({ apiKey: process.env.FORMFEED_API_KEY! });
const render = await formfeed.renders.create({
template: 'quote',
data,
post: {
watermark: { text: 'DRAFT' },
},
});
console.log(render.status, render.download_url);import json
import os
from formfeed import Formfeed
formfeed = Formfeed(api_key=os.environ["FORMFEED_API_KEY"])
with open("data.json", encoding="utf-8") as file:
data = json.load(file)
render = formfeed.renders.create(
template="quote",
data=data,
post={
"watermark": {"text": "DRAFT"},
},
)
print(render.status, render.download_url)<?php
require __DIR__ . '/vendor/autoload.php';
$formfeed = new Formfeed\Client(apiKey: getenv('FORMFEED_API_KEY'));
$render = $formfeed->renders->create([
'template' => 'quote',
'data' => json_decode(file_get_contents('data.json'), true),
'post' => [
'watermark' => ['text' => 'DRAFT'],
],
]);
echo $render->status, ' ', $render->downloadUrl, PHP_EOL;package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
formfeed "github.com/formfeed-dev/formfeed-go"
)
func main() {
client := formfeed.NewClient(os.Getenv("FORMFEED_API_KEY"))
contents, err := os.ReadFile("data.json")
if err != nil {
log.Fatal(err)
}
var data map[string]any
if err := json.Unmarshal(contents, &data); err != nil {
log.Fatal(err)
}
render, err := client.Renders.Create(context.Background(), formfeed.RenderRequest{
Template: "quote",
Data: data,
Post: map[string]any{
"watermark": map[string]any{"text": "DRAFT"},
},
})
if err != nil {
log.Fatal(err)
}
fmt.Println(render.Status, render.DownloadURL)
}using System.Text.Json;
using Formfeed;
using var formfeed = new FormfeedClient(Environment.GetEnvironmentVariable("FORMFEED_API_KEY"));
var render = await formfeed.Renders.CreateAsync(new RenderRequest
{
Template = "quote",
Data = JsonSerializer.Deserialize<Dictionary<string, object?>>(File.ReadAllText("data.json")),
Post = new Dictionary<string, object?>
{
["watermark"] = new Dictionary<string, object?> { ["text"] = "DRAFT" },
},
});
Console.WriteLine($"{render.Status} {render.DownloadUrl}");import com.fasterxml.jackson.databind.ObjectMapper;
import dev.formfeed.Formfeed;
import dev.formfeed.RenderRequest;
import java.io.File;
import java.util.Map;
public class Render {
public static void main(String[] args) throws Exception {
var formfeed = Formfeed.builder().apiKey(System.getenv("FORMFEED_API_KEY")).build();
var data = new ObjectMapper().readTree(new File("data.json"));
var request = RenderRequest.template("quote")
.data(data)
.post(Map.of(
"watermark", Map.of("text", "DRAFT")));
var render = formfeed.renders().create(request);
System.out.println(render.getStatus() + " " + render.getDownloadUrl());
}
}require "json"
require "formfeed"
formfeed = Formfeed::Client.new(api_key: ENV.fetch("FORMFEED_API_KEY"))
render = formfeed.renders.create(
template: "quote",
data: JSON.parse(File.read("data.json")),
post: {
watermark: { text: "DRAFT" }
}
)
puts "#{render.status} #{render.download_url}"More ways to call it
// mark a PDF you already rendered, without rendering it again
const marked = await formfeed.pdf.watermark(render, {
text: 'SUPERSEDED',
color: '#b91c1c',
opacity: 0.15,
});Start rendering today
The free plan includes 100 units a month and free test renders. Change plans when you need more.