Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Put the PDF’s URL in an anchor’s href attribute. A normal link opens the file according to the browser’s PDF settings; add the download attribute when you want to request a download instead.

<a href="/files/guide.pdf">Read the PDF guide</a>

The basic PDF link

An HTML anchor can point to a PDF exactly as it points to an HTML page. The only required part is a valid URL in href:

<a href="/files/guide.pdf">Read the PDF guide</a>

When a visitor activates this link, the browser navigates to /files/guide.pdf. Depending on the browser, operating system, installed PDF software and user preferences, the file may open in an integrated PDF viewer, open in an external application or trigger a download prompt.

Use descriptive link text

Tell users both what the destination is and what will happen. Good examples are:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Amazon Kindle 16 GB (newest model) - Lightest and most compact Kindle, now with faster page turns, and higher contrast ratio, for an enhanced reading experience - Matcha
  • The lightest and most compact Kindle - Now with a brighter front light at max setting, higher contrast ratio, and faster page turns for an enhanced reading experience.
  • Effortless reading in any light - Read comfortably with a 6“ glare-free display, adjustable front light—now 25% brighter at max setting—and dark mode.
  • Escape into your books - Tune out messages, emails, and social media with a distraction-free reading experience.
  • Read for a while - Get up to 6 weeks of battery life on a single charge.
  • Take your library with you – 16 GB storage holds thousands of books.
  • <a href="/documents/annual-report.pdf">Read the annual report (PDF)</a>
  • <a href="/downloads/accessibility-report.pdf" download>Download the accessibility report (PDF)</a>

Avoid vague labels such as “click here.” Descriptive text is clearer for everyone and gives screen-reader users useful information when links are listed out of context.

Choose between opening and downloading

Goal HTML pattern What it requests
Let the browser display the PDF <a href="/documents/report.pdf">Read the report (PDF)</a> Normal navigation. The browser chooses its PDF viewer, external application or download behavior.
Request a download <a href="/documents/report.pdf" download>Download the report (PDF)</a> Download treatment when the browser and URL meet the attribute’s requirements.
Suggest a local filename <a href="/documents/report.pdf" download="annual-report.pdf">Download the annual report (PDF)</a> A suggested filename. The server’s Content-Disposition header, browser and user settings can override it.

What the download attribute can and cannot do

The Boolean form, download, asks the browser to treat the target as a download. The filename form, download="annual-report.pdf", also supplies a preferred name.

MDN documents this behavior for same-origin URLs and for blob: and data: URLs. A PDF hosted on another origin should therefore be written as an ordinary navigation link; do not promise visitors that a cross-origin download attribute will force a download. For a cross-origin resource, server response headers and the remote server’s policy control the result.

Write the correct URL in href

Relative URLs

Use a relative URL when the PDF is served by the same site:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<a href="/files/guide.pdf">Read the guide (PDF)</a>
<a href="../downloads/price-list.pdf" download>Download the price list (PDF)</a>

A leading slash starts at the site root. Without the slash, the path is resolved relative to the current document:

Rank #2
ECOPAD 10.1 Inch Tablet, Android 15 Tablets 12GB(4+8) RAM / 64GB ROM / 1TB SD Card Expansion, 1280x800 IPS HD Touchscreen, 6000mAh Battery, Bluetooth 5.0, Dual Cameras, GMS, Dual Band WiFi, Black
  • Latest Android Tablet - This android tablet features a quad-core processor, android 15 OS and a 10.1" IPS screen, its smooth operation enables seamless video playback, gaming, and multitasking.
  • 12GB RAM/64GB ROM + 1TB Expand - With ample storage capacity that can be expanded up to 1TB via SD card (sold separately), you can confidently store all your photos, videos and files without concerns.
  • IPS Display & Dual Camera - Equipped with 10.1" IPS 1280x800 HD screen, 2.0MP front camera/8.0MP rear camera, this android 15 tablet offers you a delightful experience while watching movies, reading books, or making video calls.
  • Long Battery Life - Built-in 6000mAh lithium battery, this android tablet provides up to 8 hours of uninterrupted video playback, enabling you to use it for longer periods without any interruptions.
  • Worry-Free Service - We offer comprehensive support to put your mind at ease. Our warranty lasts for 1 year. If you have any questions, please don't hesitate to contact us. We will respond promptly and assist you in resolving any issues.
<a href="files/guide.pdf">Guide</a>

On https://example.com/help/index.html, that second link resolves to https://example.com/help/files/guide.pdf. Check the resolved path when moving a page between directories.

Absolute URLs

Use a complete URL for a PDF on another site or when the link must remain unambiguous:

<a href="https://example.org/files/guide.pdf">Read the guide (PDF)</a>

Use ordinary navigation wording for cross-origin links. The remote server decides whether the response is displayed or downloaded.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Spaces, query strings and fragments

Encode unsafe characters in filenames. Prefer a URL such as /files/annual-report-2026.pdf instead of putting literal spaces in the path. Query parameters can be included normally:

<a href="/reports/report.pdf?version=2">Read version 2 (PDF)</a>

A fragment can be used when the PDF viewer supports it, for example /reports/report.pdf#page=3. Fragment behavior is viewer-dependent; it does not change the file requested from the server.

Rank #3
HNVHNV Android Tablet 7 Inch Tablet, E-Reader, 6GB RAM 32GB ROM 1TB Expansion, Quad-core Processor, Dual Camera, WiFi, Bluetooth, Parental Control (Pink)
  • 【Android Tablet】Equipped with the latest Android system, it has stronger compatibility, faster response speed and smoother operation. It is GMS certified, pre-installed with Google Play, and supports social applications such as Facebook, Twitter, YouTube, and TikTok. It is very suitable for watching videos, online chatting, reading e-books, etc.
  • 【Smooth Performance】This tablet is equipped with a 1024x600 IPS touch screen, Unisoc SC7731E quad-core processor, 6GB memory (2GB + 4GB virtual memory), 32GB ROM, and the tablet storage space can be expanded to 1TB using an SD card, which can store everything you need.
  • 【Powerful Function】This is a cost-effective tablet. Affordable price and excellent configuration. Equipped with 2MP+5MP dual cameras, Bluetooth, 5G/2.4G dual-band WiFi, FM radio, speakers, 3.5mm headphone jack, etc. Suitable for reading, photography, video, music, etc., meeting most of your daily needs.
  • 【Child-friendly functions and parental control】Pre-installed Google Kids Space application, providing rich content suitable for different age groups. Equipped with a parental control mode, it allows you to filter content, set educational goals, and manage screen time limits based on your child's age, providing a safe use environment that does not require constant supervision.
  • 【Portable & Lightweight & Protective Case】​​- The tablet body is slim and lightweight, easy to carry. It can be easily put into a bag, backpack or even back pocket. In addition, the durable and environmentally friendly protective case can effectively protect your tablet from drops, scratches and dust. You can use it anywhere you want.

A complete HTML example

This standalone document demonstrates view and download links, including a suggested filename:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>PDF resources</title>
</head>
<body>
  <h1>Project resources</h1>
  <p>
    <a href="/documents/project-guide.pdf">
      Read the project guide (PDF)
    </a>
  </p>
  <p>
    <a href="/documents/project-guide.pdf" download="project-guide.pdf">
      Download the project guide (PDF)
    </a>
  </p>
</body>
</html>

The two anchors can use the same resource. The first leaves the action to normal browser navigation; the second requests download handling and suggests a filename.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the server identify the file as a PDF

Serve the resource with the registered application/pdf media type. A correct response normally includes a header equivalent to:

Content-Type: application/pdf

If the server sends a generic binary type or an incorrect type, browsers may display an unexpected prompt or fail to use their PDF viewer. Confirm the response headers in your hosting configuration or browser developer tools.

When headers override the link

The HTTP response can request inline display or attachment download with Content-Disposition. Its filename can take precedence over the filename suggested by download="...". Browser handling differs, so treat the HTML filename as a preference rather than a guarantee.

Rank #4
Amazon Kindle Scribe Colorsoft 64GB (newest model) — 11” paper-like color display — Write in notebooks, docs, and books. Read in any light. Pen included - Graphite
  • Our most advanced Kindle Scribe – Features an 11” Colorsoft display with front light, built-in notebook, AI tools, and support for popular cloud services.
  • Bring ideas to life in color – The custom-built Colorsoft display delivers high-contrast, paper-like color that’s easy on the eyes without distracting flashes when writing.
  • Get a pen-on-paper feel: The textured surface and responsive display create a smooth, paper-like writing experience. Plus, the included pen never needs charging and has a built-in eraser and shortcut button for tools like the highlighter.
  • More room to read, write, and think – Just 5.4mm thin and 400g light, with fluid performance and a large 11" display that gives you space to work comfortably.
  • Get more out of your notes – Take notes in the built-in notebook, then use AI to find information, ask questions about what you’ve written, and generate summaries. You can also clean up handwriting or convert it to text.

Accessibility and user experience details

  • Include “(PDF)” in visible link text so users know they are leaving HTML content for a document.
  • Use “Read” or “View” when the normal action is opening the document, and “Download” when you request saving it.
  • Keep the link text meaningful without surrounding paragraph context; screen readers may present a list of links alone.
  • Do not rely on color alone to identify the link.
  • If a PDF opens in a new tab because of your interface or browser behavior, make that outcome clear in the surrounding text. Do not add a new-tab target merely to compensate for a PDF viewer.
  • Provide an HTML alternative when the document contains essential information that some users cannot access in their PDF software.

Same-origin and cross-origin decisions

Same-origin PDF

For a PDF on the same scheme, host and port as the page, you can offer both a normal link and a download request. The browser still has the final say, and response headers may affect the result.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cross-origin PDF

For a PDF hosted elsewhere, use an ordinary anchor and describe it as a PDF link. The download attribute is not a reliable way to force saving across origins. If you control the remote server, configure its response headers there; if you do not, explain that the destination opens according to the host and browser.

Testing checklist

  1. Open the page over the same protocol visitors will use, preferably HTTPS.
  2. Activate the view link and confirm that the expected PDF opens or downloads.
  3. Activate the download link and check whether the browser honors the request.
  4. Inspect the network response for a successful status and Content-Type: application/pdf.
  5. Check the saved filename. If it differs from the HTML suggestion, inspect Content-Disposition and browser settings.
  6. Test keyboard activation with Tab and Enter.
  7. Test at least one desktop and one mobile browser because integrated PDF viewers differ.
  8. Test a logged-out session if the file should be public; authentication redirects are a common cause of an HTML login page appearing where a PDF was expected.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting PDF links

The link returns “404 Not Found”

The URL does not map to the deployed file. Check capitalization, directory names, the leading slash and the exact filename. Many production servers treat Guide.pdf and guide.pdf as different paths.

The browser shows a blank page or an HTML error page

Inspect the response body and headers. A failed application route, login redirect or proxy error may be returned at the PDF URL. The endpoint must return the PDF bytes with a successful status and the application/pdf media type.

The PDF opens instead of downloading

That is normal for a plain anchor. Add download for a same-origin file, then retest. If the file is cross-origin, the attribute is not a dependable force-download mechanism; configure the remote response or explain the expected browser behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Gleeso Tablet, 2026 Latest 10 Inch Android 16 Tablet, 24GB+64GB+1TB TF, 6000mAh Battery, Fast Charging, HD Display, Widevine L1, Dual Camera, Face ID, Split Screen, Light, Portable
  • 【High Performance Android 16 Tablet for Smooth Work & Entertainment】:Looking for a responsive daily electronics computer? This Android 16 tablet is exactly the ideal tablet for adults you need. Powered by upgraded hardware and the newest android 16 system, this 10 inch tablet runs extremely smoothly. It loads apps fast, plays games without lag, and handles multitasking effortlessly. Whether for office work, web browsing or casual entertainment, this steady Android tablet always performs well. It’s a solid and budget-friendly tablet for your daily use.
  • 【24GB+64GB Large Storage & 1TB Expandable Memory Tablet】:Storage issues are totally gone with this 10 inch tablet! Equipped with 24GB RAM and 64GB internal storage, this robust Android tablet can run multiple apps and games simultaneously without slowing down. You can expand the memory up to 1TB with a TF card (not included) to store countless photos, videos and documents. Functional and user-oriented, this tablet for adults is a perfect daily electronics computer for work, study and entertainment.
  • 【6000mAh Long-Lasting Battery & Fast Charging 10 Inch Tablet】:This 10 inch tablet packs a 6000mAh large battery to support your all-day use! It keeps running steadily for video streaming, office work and web browsing, no need to charge frequently. The fast charging feature also saves your precious time, letting you get fully powered up quickly. Lightweight and sturdy, this trust-worthy tablet is a must-have daily electronics computer, and the reliable tablet fits both indoor and outdoor use perfectly.
  • 【10-Inch HD Display & Widevine L1 Certified Android Tablet】:Get a great watching experience on this tablet! The 10-inch 1280*800 HD screen delivers bright and clear visuals for reading, scrolling and video watching. Certified with Widevine L1, this premium tablet supports true full HD streaming on Netflix, Prime Video and other mainstream platforms, no more fuzzy compressed images. As a practical daily electronics computer, this 10 inch tablet brings you crisp, high-quality viewing anytime at home.
  • 【Dual Camera & Stereo Speaker Tablet for Multi-Scenario Use】:Designed for daily adult life, this all-round tablet comes with dual cameras, fast Face ID unlock and dual stereo speakers. The dual cameras support clear video calls and daily photography, and Face ID lets you unlock your device in seconds safely. Matched with immersive stereo sound, this Android tablet greatly upgrades your experience of watching movies, listening to music and chatting online. This versatile android 16 tablet is your perfect portable electronics computer for home, office and travel.

The suggested filename is ignored

The filename is only a suggestion. A Content-Disposition filename, browser policy or user preference may take precedence. Check the response headers and avoid promising a specific saved name in user-facing copy.

The link works locally but fails after deployment

Verify the deployed path, URL base, case sensitivity, redirects and access permissions. A relative URL that worked in a nested local folder may resolve somewhere else after the page is moved.

A cross-origin request is blocked

Normal navigation to a PDF generally does not require JavaScript CORS permission. If your page fetches the PDF with JavaScript instead of navigating to it, the PDF host must allow that request with appropriate CORS headers.

Optional: preview the page that contains your PDF link

If you need an automated visual check of a documentation page containing PDF links, ScreenshotNeo can return a screenshot from one GET request. It is separate from the HTML link itself, but useful for checking how a PDF call-to-action appears in a rendered page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or skip the browser setup

Use the ScreenshotNeo API with the page URL you want to inspect. See the ScreenshotNeo documentation for parameters and response details.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/resources -o resources.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com/resources"}, timeout=90)
open("resources.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com/resources' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Before capture, cookie and consent banners, newsletter popups and chat widgets can be removed. Bot checks, blank pages and failed loads are not billed, and the response identifies the page verdict and billing status in headers. ScreenshotNeo also provides an MCP server so AI agents can take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000 screenshots. Create a free ScreenshotNeo account.

FAQ

Frequently Asked Questions

Can I link to a PDF stored in a private system?

Yes, but visitors must satisfy that system’s authentication and authorization rules. A link cannot make a protected PDF public; unauthenticated users may be redirected to a login page instead of receiving a PDF.

Should I add a file extension to the link text?

You do not need to expose the URL or extension, but identifying the destination as “(PDF)” helps users understand the format before activating the link.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can one anchor both open and download a PDF?

One anchor requests one behavior at a time. Provide separate “Read” and “Download” links when users need an explicit choice.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.