What does it do?
Developers compose a document with HTML and CSS, render it in the browser, then call a download or rendering function. daepdf reads the browser's DOM and computed styles to reconstruct the PDF. Text in the result can be selected, searched, and copied, while SVG is handled as vector paths. Responsive CSS is calculated for the page size. Because the library depends on the browser DOM, it must run on the client side.
Key features
- Convert browser-rendered HTML and CSS layouts to PDF
- Include selectable, searchable, copyable text in PDFs
- Handle SVG as vector paths and insert JPEGs without re-encoding
- Provide PDF download and rendering functions
- Run in the browser without a server