How HTML Becomes a PDF
The client-side path uses html2pdf.js and html2canvas.
For pasted markup and local HTML files, the page passes a rendered HTML element to html2pdf.js. html2canvas captures the page and jsPDF packages the result as a PDF. This is useful for simple static documents but may rasterize text and graphics.
- It is not a full browser print engine and should not be described as vector-perfect output.
- External assets may need network access and CORS permission.
- Inspect the PDF for text clarity, layout and page breaks before sharing.