Forma PDF
Create a restaurant menu PDF from structured data
By WVSTECH · Reviewed November 23, 2026 · Examples target SDK 0.4.0
A restaurant menu is a useful example of a document whose design stays mostly stable while its data changes. Keep item names, descriptions and formatted prices in your application and send them to a reusable menu layout.
Explore the built-in menu
const template = getTemplate('menu')
const editor = createEditor(container, {
layout: template.layout,
values: template.values,
locale: 'en'
})
const contract = editor.getDataContract()
The contract identifies the bindings expected by that template. Adapt them to your menu database or customize the layout. Use tables for repeating rows, text fields for section titles, and an embedded image for a logo.
Price formatting and language
Format prices in your application using the currency and language appropriate for the restaurant. Changing the editor interface language does not translate the menu itself. Ingredient descriptions and allergen information must come from verified restaurant data.
Preview long descriptions
Test names and descriptions that wrap onto more than one line. Keep page geometry within A4 or Letter boundaries and enable automatic page breaks when the menu grows. Generate separate values for each location or seasonal menu while retaining a shared approved design.
See the sample menu PDF and the pagination guide before integrating a larger menu.
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
- 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?