Where is my data stored?
Everything runs in your browser. Projects are written directly to your disk through the File System Access API, and nothing is uploaded to a remote server. If you choose not to grant file system access, you can still work in the editor and download a local .pdftemplate copy before closing your browser tab.
Which PDF library should I target for my project?
@react-pdf/renderer provides declarative flexbox layout and React component hierarchy — ideal for structured documents. pdf-lib operates at a lower level with exact coordinates and existing PDF manipulation. jsPDF generates imperative drawing commands with minimal runtime overhead for browser-side output. HTML export emits standalone markup for html2pdf.js, Puppeteer, Playwright, or WeasyPrint. Python developers can compile to ReportLab, fpdf2, WeasyPrint, or xhtml2pdf.
How do templates work in CodePDF?
Each template is a version-controlled bundle containing the layout JSON schema, generated PDF, preview thumbnail, and metadata. Open any template and select "Enhance this template" to customize it visually in the editor, or choose "Generate Code" to export clean source code across 22 libraries.
Can I create and save my own custom templates?
Yes — every template is just a saved .pdftemplate project. Design your document visually, save the JSON file to your local repository or machine, and reuse it as the foundation for future documents.
What component types are available in the editor?
The palette includes Basic Components (Text, Date, Currency, Page Number, Boolean, Integer, Decimal), Iterative Components (Table, Repeating View, Pills, List), Complex Components (View, Image, Link, Page, Line, Code Snippet, Barcode), and Form Components (Text Field, Dropdown). Drawing primitives (Rectangle, Circle, Ellipse, Line, SVG Path) are unlocked when targeting drawing libraries like pdf-lib.
Can I use custom fonts in my generated PDFs?
For @react-pdf/renderer, you can register custom web fonts via Font.register({ family, src }). For html2pdf and WeasyPrint, system and web fonts are fully supported. For pdf-lib, @pdf-lib/fontkit enables embedding custom TrueType/OpenType font files. The editor includes standard fonts for live preview.
How do dynamic data bindings work?
Open the Data Model panel to declare schema fields (String, Number, Boolean, Image URL, Array) with sample values. In the Props panel of any component, switch a property from "Static" to "Dynamic" and select the field name. Expressions like "Invoice #{{invoiceNumber}}" are also supported. The generated code references typed data arguments.
Why do some components disappear when switching target libraries?
Every component is tagged with the PDF engines that natively support it. For example, interactive AcroForm widgets target a narrower set of libraries than core layout Views and Text. The palette automatically adapts to the selected target library so you never export incompatible code.
Is there a limit on document size or page count?
The editor is optimized for sub-millisecond local rendering. Imperative compilers (jsPDF, pdf-lib, Python, Rust) flatten layout nodes into positioned coordinates ahead of time. For multi-hundred page documents with dynamic tables, generation in server-side batches is recommended.
How do I undo or redo changes in the editor?
CodePDF supports full keyboard shortcuts: Cmd/Ctrl+Z for undo, Cmd/Ctrl+Shift+Z for redo, Cmd/Ctrl+D for component duplication, and Delete/Backspace to remove selected nodes.
Can I collaborate with team members on a template?
CodePDF is a local-first single-user editor with zero cloud lock-in. Because projects are plain JSON .pdftemplate files, you can commit them to Git repositories, create pull requests, or share them over Slack/email for team reviews.
Is CodePDF open source or free to use?
CodePDF is 100% free to use. You can design templates and export production code without paying CodePDF anything. All template code generated by CodePDF is yours to modify, redistribute, and deploy (MIT / unrestricted); each underlying third-party PDF library you install (such as MIT, Apache-2.0, BSD-3-Clause, LGPL, or QuestPDF Community/Commercial) remains subject to its own upstream license.