
Web Scripts & Software Mobile app
DEV3 Duesprig – Bill Payment & Recharge Platform Laravel Script with Gemini AI admin tools, Retail Agents & Flutter App
from $99
Live demoDeveloper tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Margins (mm)
Tokens: {page} {pages} {title} {date}
Page numbers in the print engine use CSS margin boxes (Chrome and Edge 131 or newer). Safari and Firefox ignore them; the direct download always includes them.
Start a new page
h2 { break-before: page; }Put each chapter or invoice on its own page.
Keep a block together
.card, tr, figure { break-inside: avoid; }Stops a table row, card or image being cut across two pages.
Keep a heading with its text
h2, h3 { break-after: avoid; }Avoids a heading stranded at the bottom of a page.
Repeat table headers
thead { display: table-header-group; }Long tables repeat their header row on every page.
Print colours and backgrounds
body { print-color-adjust: exact; }Browsers drop background colours unless you ask for them. The Print backgrounds option adds this.
Print-only styles
@media print { .no-print { display: none; } }Hide buttons and navigation in the PDF.
Print / Save as PDF uses your browser's print engine for the best quality: choose "Save as PDF" as the destination. Download PDF (direct) draws the page as pictures, so text is not selectable and fidelity is lower, but it works without a print dialog.
URL to PDF is not offered: it needs a server-side browser, and this page never sends your content anywhere. Related: Markdown to PDF, invoice generator.
Need HTML to PDF Converter (Paste Code or Upload) built into your own product? We build it as a full app, API and admin included. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The html to pdf converter (paste code or upload) stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Skip the build: ready-made apps with the code included. Buy once, own the source, and try each one live first.

Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software
from $99
Live demoDevelopers use this for invoices, reports, certificates and email templates. You paste or upload the markup and get a paginated PDF without installing anything or sending your content to a server.
The print engine hands your document to the browser exactly as a printer would. You get real text, working links, fonts and CSS page breaks. It needs one extra click in the print dialog, and headers or page numbers need a Chromium browser.
The direct engine draws the page onto a canvas, slices it into pages and builds the PDF with jsPDF. It is quick and predictable, but pages are pictures and very small text may look soft.
break-inside: avoid on cards and table rows, and thead { display: table-header-group } so long tables repeat their header.Everything is sanitised with DOMPurify, scripts are removed, and the preview frame runs under a strict content security policy. Your HTML never leaves the tab.
No. The HTML is sanitised and rendered in a sandboxed frame in your own browser, and the PDF is created on your device. That is why URL to PDF is not offered: loading a live web page needs a server-side browser.
Print / Save as PDF uses the browser print engine. It gives the best quality, selectable text, links and real page breaks, and you choose Save as PDF as the destination. Direct download draws the page as pictures with jsPDF, which works without a dialog but is lower fidelity and the text is not selectable.
The print engine draws headers, footers and page numbers with CSS margin boxes. Chrome and Edge 131 and newer support them. Firefox and Safari ignore them. The direct download adds page numbers itself in every browser.
No. Scripts, inline event handlers, iframes, forms and javascript: links are removed, and the preview frame also blocks scripts with a content security policy. Static HTML and CSS render normally.
Use Upload .html + assets and select the HTML file together with its images, fonts and stylesheets. References such as img/logo.png or style.css are matched by path or file name and embedded. Images on https addresses load in the print engine but are not included in the direct download.
Use CSS such as break-before: page on a heading to start a new page, and break-inside: avoid on cards or table rows to keep them whole. The page includes a list of ready-to-copy rules.