Saving an article for offline reading, attaching a finished email layout to a report, making a PDF version of your web page or a receipt from HTML code โ this is a common task. The "HTML โ PDF" tool in pdfredX does it right in the browser and lets you choose how: privately (locally) or with better layout (via a server). Let's look at both paths.
Step 01. Open the tool
Open pdfredx.com and launch "HTML โ PDF". A window appears with two tabs: HTML code (paste ready markup) and Page URL (a website address). Pick what you have.
Step 02. Choose the conversion method
Below the input is a method switch:
- ๐ Local (private). Conversion runs right in your browser, the file goes nowhere. The best choice for pasted HTML code whose styles and images are inside it (inline CSS, data images).
- ๐ Server (better layout). The markup or the page at a URL is rendered by our server. It holds layout and external resources better, but it is a basic render without JavaScript โ good for documents and simple pages, weak on complex dynamic sites. Processed on our server (not 100% local).
- For the URL tab, the "local" method is ๐จ Open + Ctrl+P: we open the page in a new tab, and you press Ctrl+P โ "Save as PDF". This gives the best quality (your browser's engine) and stays 100% local.
Step 03. Get the PDF
Press "Convert to PDF" โ the finished file downloads straight from the browser. That's how HTML code becomes a neat document, and an address becomes a PDF version of the site or a web page as an offline document. Free, no registration.
How it works under the hood
The local path. The pasted HTML is rendered in a hidden container, then html2canvas captures it into an image, and jsPDF assembles the PDF (an A4 sheet, a long page sliced across several). All in the tab's memory โ nothing is sent.
The server path. The code, or a page fetched by URL, is sent to our PHP endpoint, where the Dompdf library renders a real PDF and returns it. The server, unlike the browser, can fetch a page by URL (the browser is blocked from that by the CORS policy).
Known limitations
Local โ self-contained HTML only. External images and styles from other domains won't be pulled in this mode (security policy). For pages with external resources, use the server or Ctrl+P.
The server doesn't run JavaScript. Dompdf renders HTML and CSS but doesn't execute scripts โ on sites drawn via JS the result will be simplified. For such pages the best result comes from browser print (Ctrl+P).
A live URL can't be converted "locally". The browser can't read another site because of CORS โ so for a URL there's either the server or the honest "Open + Ctrl+P" path.
Need to combine several ready PDFs into one? That is the Merge PDF tool.
Try it right now โ pdfredx.com, no registration.
