Create and download PDF documents from rich text — free, in-browser
Start typing your document here. You can use the toolbar above to format text.
Features: Bold, Italic, Underline, lists, colors, and more.
This PDF generator uses the browser's native print-to-PDF engine through a contentEditable rich text interface. The document.execCommand API applies formatting commands (bold, italic, alignment, lists) to selected content in real-time. PDF output leverages the @page CSS at-rule for precise page size control (ISO A4/A3 or US Letter dimensions) with configurable margins. The generated HTML document is opened in a new window with optimized print stylesheets, triggering the browser's built-in PDF renderer — which produces high-quality, standards-compliant PDF output with proper font embedding and vector text.
Real-world use cases:
This tool is part of the FAK LAB ecosystem, founded by Faizan Ahmad Khan Khichi. Document creation and PDF generation happen 100% in your browser. Your text, formatting, and exported files never touch any external server. The PDF is rendered by your browser's native print engine — the same technology used when you print any webpage. No document content is transmitted, stored, or accessible to anyone but you.
Browser security policies prevent JavaScript from directly creating binary PDF files without external libraries. By using the native print-to-PDF engine, you get superior output quality with proper font rendering, vector text (searchable/selectable), and accurate page layout — the same quality as printing from any desktop application. Simply select "Save as PDF" in the print dialog.
Yes. You can paste images directly into the editor using Ctrl+V (from clipboard) or drag-and-drop. Images embedded in the contentEditable area will be included in the PDF output. For best results, use images smaller than 2MB and ensure they display correctly in the editor before generating the PDF.
Three page sizes are available: A4 (210×297mm, international standard), Letter (216×279mm, US/Canada standard), and A3 (297×420mm, large format for posters or diagrams). All pages use 20mm margins on all sides. Custom margins can be adjusted in the browser's print dialog before saving.