This is quick, easy, to the point and doesn't require any third-party script:

<embed src="http://example.com/the.pdf" width="500" height="375" 
 type="application/pdf">

UPDATE (2/3/2021)

Adobe now offers its own PDF Embed API.
(That requires registering at Adobe and get clientID to use within js)

https://www.adobe.io/apis/documentcloud/dcsdk/pdf-embed.html

UPDATE (1/2018):

The Chrome browser on Android no longer supports PDF embeds. You can get around this by using the Google Drive PDF viewer

<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=http://example.com/the.pdf" width="500" height="375">
🌐
PDFCrowd
pdfcrowd.com › html-to-pdf
Convert HTML to PDF Online - PDFCrowd
Convert web pages, HTML files, or code into clean, readable PDFs with ease.
🌐
Adobe
adobe.com › acrobat › hub › how-to-convert-pdf-to-webpage.html
Convert PDF to HTML — Make a PDF into a web page | Adobe Acrobat
Learn how to convert PDFs to HTML files in a few simple steps and how to import into website builders.
🌐
Nutrient
nutrient.io › blog › sdk › open pdf in your web app
Five easy ways to embed and display a PDF in HTML (no JavaScript needed)
June 3, 2025 - Try out our PDF library using our free trial, and check out our demos to see what’s possible. ... Use the native object, iframe, or embed tag with type="application/pdf". Copy the code snippets above and replace the src or data URL with your file.
🌐
Sejda PDF
sejda.com › html-to-pdf
Convert HTML to PDF Online
Click Convert HTML to PDF and wait until processing completes. Then press Download and save your PDF documents. Convert web page to PDF · Copy the code snippet below to your website: Copy code More options in the docs See this in action · Contact Support ·
🌐
Stanford
web.stanford.edu › group › csp › cs21 › htmlcheatsheet.pdf pdf
HTML Cheatsheet page 1 of 2 Basic Tags
<code> </code> Used to define source code, usually monospace · <cite> </cite> Creates a citation, usually processed in italics · <address> </address> Creates address section, usually processed in italics ·
🌐
GeeksforGeeks
geeksforgeeks.org › html › how-to-embed-pdf-file-using-html
How to Embed PDF file using HTML ? - GeeksforGeeks
July 23, 2025 - A browser that does not support PDF documents or the object tag can also use this tag to embed a pdf HTML code.
Find elsewhere
🌐
ExpertPdf
html-to-pdf.net › free-html-to-pdf-converter.aspx
Free HTML To PDF Converter online. Convert your HTML tags to PDF for free using ExpertPDF online converter.
Use our online Html To Pdf Converter to export your HTML scripts to PDF documents. Enter any HTML below and click "Convert to PDF". Your script will be exported to PDF. HTML code: Convert to PDF
🌐
Tutorialspoint
tutorialspoint.com › html › html_tutorial.pdf pdf
Preview HTML Tutorial (PDF Version)
Language Codes: ISO 639, Macintosh .................................................................................................. 412 · 38. HTML – CHARACTER ENCODINGS ....................................................................................
🌐
HTML2PDF
html2pdf.com
HTML to PDF – Convert HTML files to PDF
Our tool here can convert an HTML file into a PDF. You can upload a simple HTML file or a ZIP file containing the HTML code along with its corresponding images and style sheets.
🌐
Adobe
adobe.com › acrobat › resources › how-to-convert-html-to-pdf.html
How to convert HTML to PDF | Adobe Acrobat
For more options, convert the web page to PDF in the Acrobat desktop app. You can convert linked or unlinked web pages to new PDFs or append them to existing PDF documents. You have the option to include an entire website with the HTML code or just particular levels of the website.
🌐
AvePDF
avepdf.com › html-to-pdf
Convert HTML to PDF Online: URL, File or HTML Code | AvePDF
Free HTML to PDF converter online. Convert a webpage to PDF by adding a URL or by uploading your HTML file. 100% free — no software or signup required.
🌐
POWR Blog
blog.powr.io › how-to-display-a-pdf-in-html
How to Display a PDF in HTML
January 2, 2025 - Here are the main URL limitations used in embedding PDF files into HTML: ... Please note that it's possible to specify various parameters in your URL at once; you need to ensure that every parameter is separated with either an ampersand (&) or a pound (#) character. All actions should be executed from left to right. Later, ensure that the latest actions override the previous steps. Here are several examples of how to specify parameters in your URL: ... Most web developers use code to embed PDF documents into web pages and remove or disable the toolbars of the embedded documents.
🌐
Reddit
reddit.com › r/webdev › building a pdf with html. crazy?
r/webdev on Reddit: Building a PDF with HTML. Crazy?
November 25, 2024 -

A client has a "fact sheet" with different stats about their business. They need to update the stats (and some text) every month and create a PDF from it.

Am I crazy to think that I could/should do the design and layout in HTML(+CSS)? I'm pretty skilled but have never done anything in HTML that is designed primarily for print. I'm sure there are gotchas, I just don't know what they are.

FWIW, it would be okay for me to target one specific browser engine (probably Blink) since the browser will only be used to generate the 8 1/2 x 11 PDF.

On one hand I feel like HTML would give me lots of power to use graphing libraries, SVG's and other goodies. But on the other hand, I'm not sure that I can build it in a way so that it consistently generates a nice (single page) PDF without overflow or other layout issues.

Thoughts?

PS I'm an expert backend developer so building the interface for the client to collect and edit the data would be pretty simple for me. I'm not asking about that.

🌐
HTML.com
html.com › cheat-sheet
HTML.com Cheat Sheet [PDF & Interactive]
March 5, 2020 - That’s why we’ve put together this handy HTML cheat sheet for you to print out & keep by your side as you learn to code HTML, CSS & javascript. It makes the process of learning to code & building your first website much easier. HTML.com PDF Cheat Sheet ·
🌐
Stony Brook University
www3.cs.stonybrook.edu › ~pramod.ganapathi › doc › CSE102 › CSE102-CheatSheetHTML.pdf pdf
(new) The Complete HTML Cheat Sheet
HTML5 New Tags · Collective Character Objects · www.hostinger.com · Let us see how we can break the code up · in different components: <html> … </html> This tag specifies that the webpage is written · in HTML. It appears at the very first and last line ·
🌐
Nutrient
nutrient.io › blog › sdk › how to embed a pdf viewer in your website
Embed PDF in HTML: 6 methods (including enterprise solutions)
August 12, 2025 - It starts with pure HTML tags (embed, iframe, object, and a) and finishes with an advanced, fully customizable viewer built with Nutrient Web SDK. ... You can embed PDFs in websites using basic HTML methods, but these lack the professional features modern businesses need.
🌐
DocRaptor
docraptor.com
HTML to PDF API - High-Quality PDF Conversion with PrinceXML
DocRaptor is a REST HTML-to-PDF conversion API, but you can also generate PDFs with non-HTML libraries such as LaTex, jsKit, and PDFKit. In our experience, though, HTML and CSS offer many advantages including: Raw HTML code supports flexible structures such as tables, flexboxes, columns, and floats.