{"repo":"lmn1919/dompdf.js","free":true,"listed":false,"github":"https://github.com/lmn1919/dompdf.js","clone":"git clone https://github.com/lmn1919/dompdf.js.git","description":"Turn HTML into a 500-page vector PDF in 1 second. Open source.","language":"TypeScript","stars":1610,"topics":["frontend","html-to-pdf","html2pdf","pdf","pdf-generation","vector-pdf"],"license":"MIT","category":"media-processing","readme_excerpt":"dompdf.js English 中文 dompdf.js is a pure-frontend DOM-to-PDF engine powered by Rust, WebAssembly, and TypeScript. It renders vector PDFs directly in the browser without depending on jsPDF, and is designed for long documents, editable text, custom fonts, and pagination-heavy layouts. Live demo: dompdfjs.lisky.com.cn Migration notes: docs/migration-compat.md Highlights - Rust + WASM rendering pipeline - Vector PDF output with selectable text - Pagination support for large documents - Custom font embedding with Unicode text - Header/footer rendering - PDF compression and encryption - Browser-only architecture, no server required Installation The repository and npm package are both named dompdf.js . npm CDN Quick Start How It Works 1. The main thread walks the DOM and records a snapshot. 2. A Web Worker receives the snapshot and prepares render data. 3. A Rust/WASM module writes PDF bytes. 4. The browser returns the result as a Blob . This architecture avoids canvas screenshot bottlenecks and keeps the UI responsive during export. Supported Capabilities Capability Status Notes --- --- --- Pagination Stable Supports multi-page output and large documents Text rendering Stable Unicode text, custom fonts, alignment, line height Images Stable Raster images, SVG, data URLs Backgrounds and borders Stable Background color, gradients, border radius Header/footer Stable Object form and per-page callback form Progress callbacks Stable onProgress reports collection, page counting, and render","default_branch":null,"files":null,"tree":[],"storefront":"/r/lmn1919","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lmn1919/dompdf.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}