HTML to PDF: Save a Web Page
In short: To save a web page as a PDF, scroll all the way to the bottom first so lazy-loaded content renders, then convert with html-to-pdf. The text stays selectable and links clickable, unlike a screenshot. Add the date and URL to the footer and metadata for an archive.
Cluster
security
Protection, access control, redaction, and controlled sharing workflows.
Primary tool
HTML to PDF online
Open the tool from this article and complete the operation in the current locale.
Open toolTable of contents
A listing promised one price, a week later it quietly changed, and now there is nothing left to prove it. A message thread in your bank account, the terms of a promotion, a pricing page, a customer review: all of it lives only until someone hits "edit." A screenshot is a poor witness here. It is easy to call a fake, you cannot copy text out of it, and the links are dead. So people save the page as a PDF instead. The result is a document you can attach to a complaint, send to a lawyer, or just file away in case of a dispute.
A web page and a PDF are built differently. HTML is not a sheet of paper. It is text that the browser lays out on the fly: it swaps in fonts, pulls images from other servers, and reshuffles blocks to fit the window width. When you turn HTML into PDF, all that live layout has to be frozen onto fixed A4 pages. That is where the usual surprises show up: shifted margins, cut-off tables, missing fonts. Once you know where they come from, you get a clean result on the first try.
How to turn HTML into PDF, step by step
1. Open html-to-pdf and upload your source: a saved `.html` file or a link to the page, depending on what you have. 2. Before saving, scroll the whole page to the bottom in your browser so the deferred images and blocks load. Anything that did not finish loading will not make it into the PDF. 3. Pick portrait orientation for articles and message threads, landscape for wide tables and dashboards that would otherwise get clipped on the right edge. 4. Run the conversion and open the finished PDF. Scroll to the last page and check that the content did not break off in the middle. 5. Confirm that the text selects with your cursor instead of sitting there as an image: try highlighting a couple of lines and copying them. 6. Download the file right after processing. You will need it locally, and the server does not keep it for long.
What can go wrong
- The table is cut off on the right. Wide price lists and reports do not fit a portrait sheet. Switch to landscape orientation or shrink the page scale before saving.
- Part of a long page is missing. Feeds, reviews, and comments load as you scroll. Take the page all the way down and wait for everything to render, or only the top will end up in the PDF.
- The font dropped to a generic one. If the site uses a custom font that did not load, the text gets rebuilt in a different typeface and the layout shifts. Let the page load fully before converting.
- Empty frames instead of images. Pictures pulled from external servers sometimes do not arrive in time. Refresh the page, wait for every image, and then save.
- Print buttons and banners landed in the document. Cookie pop-ups and floating buttons often cover the text. Close them in your browser before you send the page to convert.
- The PDF holds an image instead of text. Then search does not work and you cannot copy anything. Save it so text stays text. That pays off in any later work with the file.
What to check before you send the PDF
- The page saved in full, from the header down to the last line in the footer.
- The text selects and copies, and the links inside the document are still clickable.
- Tables and wide blocks are not clipped at the edges of the sheet.
- The save date and the page address are visible on the document. Lock those in right away.
- The file opens in a normal PDF reader, not only in one specific browser.
What to connect next
If you need to pull text out of the saved page and fix it, move the document into an editor through pdf-to-word, then send your edit back to PDF with word-to-pdf. When the page is one big table of data, export it into a spreadsheet through pdf-to-excel and work with the numbers properly instead of reading them off a picture.
FAQ
More from this cluster
security
Protect a PDF with a Password
How to password-protect a PDF before emailing it, what it actually does, and why the password must travel separately from the file.
security
How to Remove a PDF Password
Remove a PDF password online, step by step: what to do when you know the password, and what to do when the file only blocks copying and printing. Real mistakes and how to get around them.
security
How to Redact Sensitive Data in a PDF
Safely hide a passport, account number, name, and address in a PDF: a step-by-step guide and how not to leave data sitting under a black box.
Related tools
PDF to Word online
Convert a PDF to a Word document so you can edit the text, extend sections and make changes.
Word to PDF online
Convert a Word document to PDF to lock the layout and be sure the file opens the same way everywhere.
PDF to Excel online
Extract table data from a PDF into Excel so it can be calculated, filtered and sorted.
Excel to PDF online
Convert an Excel spreadsheet to PDF to lock its look and print or send it easily.
What to do next
All tools
PDF tools catalog: merge, compress, split, convert, rotate, protect and unlock PDF files online, all directly in your browser.
FAQ
Answers to common questions about iHatePDF: whether registration is required, how files are processed, where to check limits, and whether it's safe to upload documents.
Contact
Contact iHatePDF about processing errors, choosing a tool, security, business inquiries, and suggestions for new features.