PDF Builder documentation

Everything you need to embed the visual document builder in your own product — from the first install to writing your own blocks.

@storvexa/pdf-builder

Read this first

@storvexa/pdf-builder is a React component that gives your users a drag-and-drop editor for invoices, quotations, reports and other business documents — and gives you a JSON document you own, plus a PDF.

There is one idea underneath every design decision in it, and if you take away nothing else, take this: the package does no I/O. It makes no network calls, writes no browser storage, touches no globals. Uploading an image, saving a document, calling an AI model — every one of those leaves through a callback you provide. That is what makes it safe to drop into an application that already has its own authentication, its own storage and its own rules, and it is why the chapters keep saying "you own this".

import { PdfBuilder } from '@storvexa/pdf-builder' import '@storvexa/pdf-builder/styles.css' // That is a working editor. Everything else is opt-in. <PdfBuilder onChange={(doc) => save(doc)} />
None of it is required reading before you start. Install it, render the component, and everything above is already there. Come back to a chapter when you want to change something.