Forma PDF
Build a quotation PDF generator for your application
By WVSTECH · Reviewed November 23, 2026 · Examples target SDK 0.4.0
A quotation generator needs a reusable design, customer details, an array of services and a total. Forma PDF provides a quotation starter so you can begin with a complete layout and adjust it to your business.
Start with a quotation template
import { getTemplate, createEditor } from './sdk/forma-pdf.js'
const template = getTemplate('quotation')
const editor = createEditor(container, {
layout: template.layout,
values: template.values,
locale: 'en'
})
console.log(editor.getDataContract())
Map your quotation fields
Inspect the returned data contract, then map customer records to its binding paths. You can rename bindings in your own layout to match your application. The public quotation payload demonstrates client.name, items and total together.
Who calculates the amount?
Your application calculates quantities, taxes, discounts and totals. Pass formatted amounts to the document and keep the underlying arithmetic in your business logic. Forma PDF renders the supplied values; it is not an accounting or tax engine.
For production, version approved templates, validate missing values before export and test a quotation with many services. Customers can receive a download button while only authorized staff see the designer. View the sample quotation PDF or try the form-based example.
Continue building
- Add PDF templates to a Bolt or Lovable project
- Generate a PDF from JSON in the browser
- Embed a visual PDF template editor in JavaScript
- Integrate a PDF editor with React and Next.js
- Save PDF templates as JSON in your database
- Create editable PDF templates in Bubble workflows
- Automatic PDF page breaks for text and tables
- Create a restaurant menu PDF from structured data
- Generate internal documents and memos from app data
- Generate PDF templates with OpenAI or Claude
- PDF generation, document data and API-key security
- PDF template editor or a simple Generate PDF button?