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

Try the visual editor View the SDK license