Why Generating Custom PDFs Still Sucks
Visual print builders promise effortless document design until real-world requirements hit. When dynamic tables break across pages, page numbers vanish, or QR codes are needed, you’re suddenly forced back into raw HTML and Jinja. Here is the exact problem I set out to solve with ComposeIt.
I found myself having to step back from the roadmap, look at what I'm building, and answer one honest question:
What problem am I actually solving for myself?
For me, the answer isn't theoretical. It’s a very specific, deeply frustrating wall I hit almost every time I work with business software:
How do you generate production-ready PDFs with complex, dynamic layouts without being forced to write raw code?
The Reality of Business Document Engines
I run my personal and business accounting on Frappe Books inside the Frappe Framework.
As an accounting engine, it’s stellar. It handles general ledgers, invoices, payments, and double-entry bookkeeping solidly. But running a business means sending documents to real clients: estimates, bespoke invoices, purchase orders, statements, and receipts.
The default print formats in almost any ERP or accounting tool are utilitarian at best and brand-damaging at worst. Naturally, you want to customize them.
Frappe, like many modern platforms, offers a visual Print Designer. You open it up, optimistic that you’ll have a polished invoice ready in 15 minutes without touching a codebase.
Then, the edge cases hit.
The Illusion of the Visual Builder Ceiling
Visual builders work great for fixed, single-page flyers or static letters. But business documents are inherently data-driven and fluid.
The moment your document requirements leave the sandbox of a static canvas, simple questions turn into architectural roadblocks:
- How do you handle dynamic page breaks cleanly?What happens when an invoice has 3 line items versus 45? Does the table split gracefully, or does a page break slice a table row right through the middle of a description?
- Where do page numbers go?Adding a reliable
Page X of Yin headers and footers across variable-length pages shouldn't require configuring custom CSS paged media rules or headless browser scripts. - How do pages adapt to variable content?If a client has a long billing address or a multi-line SKU description, will the layout flex naturally, or will elements overlap and break the grid?
- Where are the dynamic elements?Adding dynamic payment QR codes, conditional notes (e.g., displaying bank details only for unpaid invoices), or currency-specific formatting shouldn't be an afterthought.
Before long, you realize the visual tool has hit its ceiling.
And suddenly, you're right back where you started: inspecting elements, hacking Jinja templates and wrestling with CSS @page margins, just to make an invoice look professional.
You didn't want to engineer a document pipeline. You just wanted to format an invoice.
Why the Problem Persists
The root problem is that existing solutions live on two extreme ends of a spectrum:
- Basic Visual Builders: Great for beginners and simple layouts, but rigid. They break down the second dynamic arrays, page overflows, or conditional logic enter the equation.
- Code-Heavy Engines: (Puppeteer, WeasyPrint, PrinceXML, raw LaTeX/HTML/CSS). Incredibly powerful and capable of handling any layout logic you can dream of, but maintenance is high, iteration is slow, and non-engineers can't touch them.
Whenever teams outgrow the basic visual builders, their only recourse has been to build custom rendering microservices in-house. That is a massive waste of engineering cycles.
What ComposeIt Is Built to Do
I started building ComposeIt to eliminate that compromise.
The premise is straightforward: bring developer-grade layout control into a visual, intuitive template builder.
- Layouts that adapt to data: Tables, repeating groups, and nested structures that know how to break across pages cleanly without breaking rows or orphaning table headers.
- Visual logic: Conditional visibility, dynamic formatting, and embeddable components (like dynamic QR codes and barcodes) configured without writing code.
- Modern developer workflow: Backed by clean API endpoints and webhooks, allowing you to design visually and render programmatically from any platform, whether that’s Frappe, Baserow, Fibery, NocoDB, Airtable, or a custom backend.
Document generation should be predictable. You shouldn't have to choose between a visual editor that falls short and writing code to fix a broken layout.
If you’ve wrestled with print formats, headless browsers, or PDF table breaks in your stack, I’d love to hear how you handled it or what layout headaches you run into most.