About HTML to PDF
HTML to PDF draws your saved HTML page exactly as a browser would show it and places it on PDF pages. Choose A4 or Letter and portrait or landscape and download the result.
Handy for invoices, resumes and reports you made in HTML. Your page is drawn exactly as the browser shows it, then placed onto PDF pages. Because it is a picture of the page, text in the result is not selectable. Images and styles that live in other files will not load, so put CSS inside the HTML file.
How to use HTML to PDF
- Choose your .html file.
- Pick page size and orientation.
- Press Convert to PDF and download.
When to use HTML to PDF
- Turn an HTML invoice or receipt into a document to send.
- Convert a resume or CV built with HTML and CSS into a PDF.
- Save a report exported as an HTML file.
- Create a PDF version of a page you saved with your browser.
Tips for better results
- Put your CSS inside the HTML file. Styles and images stored in other files will not load.
- The result is a picture of the page, so text in the PDF cannot be selected.
- For a live website address, save the page as an HTML file first.
Why use 40PDF for this?
Your HTML is rendered in a hidden frame in your own browser and is not sent anywhere, which keeps invoices and customer details private.
HTML to PDF: questions and answers
Can I convert a live website address?
No. Browsers do not allow that for security reasons. Save the page as an HTML file first.
Why can't I select the text?
The page is placed in the PDF as an image to keep the look exact.
How do I convert an HTML file to PDF?
Open HTML to PDF, add your .html file, choose page size and orientation and press Convert to PDF.
Can I convert a website URL?
Not directly. Save the page as an HTML file first, then add that file here.
Why can I not select the text in my PDF?
The page is drawn as an image to keep the layout exactly the same as in the browser. Use your browser's Print to PDF if you need selectable text.