Forma PDF

Add PDF templates to a Bolt or Lovable project

By WVSTECH · Reviewed November 23, 2026 · Examples target SDK 0.4.0

If you are building a web app with an AI coding tool, treat Forma PDF as a browser SDK integration. There is no automatic account connection to Bolt or Lovable: your project must include the delivered JavaScript and styles, provide document data and handle its own storage.

Give your coding agent a concrete task

Add a PDF feature using the local Forma PDF SDK files.
Create a template-author screen with createEditor.
Save editor.getEstruct() separately from business records.
Create a customer form with a Generate PDF button.
Validate values, then call downloadPDF(layout, values, filename).
Destroy the editor on unmount. Do not expose shared API keys.
Use /docs/api for the exact contracts; do not invent SDK functions.

Implement one flow before adding AI

Begin with the quotation example and fictional values. Confirm that a template survives saving and reloading, a second customer produces a different PDF, and a long table paginates correctly. Then connect authorized records from your application's database.

What does the customer see?

Your application chooses the screen. Template owners can use the full editor while end users only fill a form and download a file. Optional AI template creation is a separate gateway integration, not a requirement for generating PDFs from saved layouts.

Give your agent the SDK implementation manual, the API reference and, for React projects, the client component example. Adapt asset imports to the generated project's build system and test the deployment.

Continue building

Try the visual editor View the SDK license