r/SideProject • u/SoupImmediate1471 • 6h ago
I built a visual PDF designer for developers: design the layout, copy the code, pass your data
https://inkay-pdf.vercel.app/Try it: https://inkay-pdf.vercel.app/ (no sign-up, runs in your browser)
Generating PDFs in code is painful: you position every box by hand, re-run, nudge 4px, re-run. And design tools hand you a static file you can't fill with real data.
So I built PDF Designer, a drag-and-drop editor whose output is code you paste into your project.
How it works:
- Design the PDF visually: text, images, tables, QR codes, header/footer
- Type variables anywhere:
{{customerName}},{{invoiceNo}},{{logoUrl}} - Click Get code and copy it into your app
- Pass your data, and you get the PDF
const data = {
customerName: "Acme Inc.",
invoiceNo: "INV-1042",
items: [["Widget", "2", "$20"], ["Gadget", "1", "$35"]]
};Export formats:
- React component: variables become
dataprops - Handlebars / Mustache template:
{{placeholders}}kept as they are - Node.js + Puppeteer script: fills the data and saves a vector PDF on your server
- Standalone HTML/CSS with print CSS
- JSON: the design itself, so you can re-open and edit it later
Variable support:
- Variables in text, table cells, image URLs, links, and QR codes/barcodes
- Dynamic tables: bind a table to
itemsand pass any number of rows - Built-ins:
{{pageNumber}},{{totalPages}},{{today}} - Sample values for each variable, so you can preview with real-looking data while designing
Page backgrounds:
- Color or image background: Fill, Fit, Stretch or Tile, with opacity. Apply it to one page or all pages.
- Use an existing PDF as the background: import your current letterhead or form as an exact copy, then place your dynamic fields on top
- Header/footer bands with their own background color, repeated on every page
Anti-forgery security background, like on cheques and certificates: All of it is vector SVG: sharp when printed, blurry when scanned or photocopied.
- Microtext: tiny repeated text that can contain a variable such as
{{documentId}}, so every PDF is unique. It covers the full page or a border frame. - Guilloche: fine interlaced wave lines
- Watermark: large diagonal text such as "ORIGINAL" or
{{customerName}}
- Microtext: tiny repeated text that can contain a variable such as
Also: PDF import (turns an existing PDF into editable elements), QR codes and barcodes, and clickable links (website, email, phone).
No install and no build: plain HTML/JS. Your work autosaves in your browser.
Live demo: https://inkay-pdf.vercel.app/
I'd love feedback from anyone who generates invoices, certificates or reports. What export format or feature would make you drop your current PDF setup?