Write the document.
Mezdoc handles the layout.
A Word-style editor that thinks like data. Drop in variables as chips, add IF and ELSE rules, loop over arrays, even paste from Word. Mezdoc lays out a paginated PDF that looks like a designer made it.
This loan is extended by lender.name to borrower.name, dated today.
The borrower agrees to maintain rider clause B at all times. The premium for this rider shall be computed separately per the schedule attached herein.
Standard terms apply without rider clause B.
The loan shall be repaid as follows:
Installment #installment.n. installment.amount due on installment.dueDate.
Signed at borrower.city by:
Loop over an array of anything.
A FOR EACH block renders one row per item, at section level or per table row. The array can hold plain text or full JSON objects, and item.key resolves per iteration. Edit the data and watch the rows follow.
For documents the old tools forgot.
Loan agreements, insurance policies, offer letters, NDAs, invoices. Any document that changes shape based on the data it carries.
Variables as chips, not strings
Click @ to insert a field. Each chip carries name, alias, and type. No more search-and-replace cleanups when an alias changes.
Visual condition builder
Equals, contains, greater than, regex. Build IF and ELSE chains with a point-and-click builder, or drop to raw expressions when needed.
Block and row loops
FOR EACH at section level or per table row. The array can be plain text or JSON objects, with item.key per iteration. Amortization schedules, line items, and policy riders render the right number of rows.
Paste from Word and Docs
Tables, fonts, margins, and alignment all preserved. Office XML noise stripped cleanly on the way in.
Headers, footers, page setup
Per-page or first-page-only. Page numbers, counts, run-time variables, signature blocks. A4, Letter, or Legal.
Live preview with sample data
Open the preview drawer to see your template rendered with real sample data, conditions and loops resolved in real time.
Mention autocomplete
Type @ to search fields by alias or name. Broken references surface inline before you ever publish.
Compiles to deterministic HTML
Mezdoc converts your document to stable HTML before rendering. Same input, always same output. No surprises in production.
Version control and environments
Save drafts, stage for QA, promote to production. Every PDF knows which template version it came from.
Write once. Render forever.
Bring your existing Word docs. Drop in variables. Add rules where the document varies. Ship a production PDF the same day.