Skip to content

v0.7.6

Choose a tag to compare

@danmolitor danmolitor released this 14 Mar 03:33
· 657 commits to main since this release

Embedded Data Round-Trip

Every Forme-generated PDF can now carry its source data as a hidden attachment. Embed JSON at render time, extract it later — no OCR, no parsing, perfect accuracy.

// Embed
const pdf = await renderDocument(element, { embedData: invoiceData });

// Extract
const data = extractData(new Uint8Array(pdfBytes));
// → { customer: "Acme", total: 503, ... }

The hosted API embeds the request body automatically on every POST /v1/render/:slug. Extract it back with the new POST /v1/extract endpoint.


VS Code: Two-Way Data Tab Sync

The Data tab in the VS Code extension now syncs bidirectionally with the companion .json file on disk. Edit in the tab, the file updates. Edit the file, the tab updates.


MCP: extract_pdf Tool

New tool that extracts embedded JSON from a Forme-generated PDF, completing the render → extract round-trip. render_pdf now auto-embeds template data.


Packages

Package Version
@formepdf/core 0.7.6
@formepdf/react 0.7.6
@formepdf/cli 0.7.6
@formepdf/renderer 0.7.6
@formepdf/hono 0.7.6
@formepdf/next 0.7.6
@formepdf/resend 0.7.6
@formepdf/mcp 0.7.6
engine (Cargo) 0.7.6
VS Code extension 0.7.7