How HTML to PDF works
HTML to PDF turns pasted HTML into a downloadable PDF, right in your browser. Paste your markup, pick a page size (A4 or Letter) and orientation, and get a PDF. The HTML is first sanitised (DOMPurify) for safety, then rendered to an image and paginated into the PDF with jsPDF.
Be realistic about what this does: it is a best-effort raster snapshot, not a full print engine. Layout is approximate, selectable text is not preserved (the page is an image), and external resources behind CORS may not load. Only pasted HTML is supported, a browser cannot fetch an arbitrary URL’s content for you (CORS).