Forma PDF
PDF template editor or a simple Generate PDF button?
By WVSTECH · Reviewed November 23, 2026 · Examples target SDK 0.4.0
Your customers do not need to see the Forma PDF playground. Use the full editor for people who design templates, and use a form or download button for people who only need to generate a document.
Three interfaces for three jobs
| User | Interface | SDK entry point |
|---|---|---|
| Template author | Pages, fields and property controls | createEditor |
| Customer | Your form and a PDF button | downloadPDF |
| Application workflow | No editor screen | generatePDF |
A minimal download action
button.addEventListener('click', async () => {
button.disabled = true
try {
await downloadPDF(savedLayout, formValues, 'quotation.pdf')
} catch (error) {
showError(error.message)
} finally {
button.disabled = false
}
})
savedLayout comes from a template saved earlier; formValues comes from your own screen. The variables and error UI belong to your app. Validate values and enforce record access before using real customer data.
Keep AI optional
AI may help an author create a first template, but customers can reuse it without supplying an API key. Opening the editor and invoking AI are separate choices. The live customer examples demonstrate simplified screens, while the playground shows the full design workspace.
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
- Build a quotation PDF generator for your application
- 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