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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Put the PDF’s URL in an anchor’s href: <a href='/files/guide.pdf'>Read the PDF guide</a>. That creates a normal link that usually opens the document in the browser. Add the download attribute when you want to request a download instead.

The basic PDF link

An HTML <a> element can point to a PDF just as it points to another web page. The href value is the file’s URL, and the text between the opening and closing tags tells the reader what will happen.

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

With that markup, selecting the link navigates to /files/guide.pdf. Depending on the browser, installed PDF viewer and user settings, the file may open in an integrated viewer, launch an external application or show a download prompt. Do not promise a particular result in the link text unless you control the environment.

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

Relative and absolute URLs

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

#1 Best Overall
Amazon Kindle 16 GB (2024 model) - Light and compact, with fast page turns, and high contrast ratio - 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 relative path such as reports/2026.pdf is resolved from the current page’s URL. A root-relative path beginning with / starts at the site root, which avoids surprises when the link appears in different folders. Use a complete absolute URL for a file hosted elsewhere:

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

Keep the URL correctly encoded. Spaces and other reserved characters should be percent-encoded (for example, annual%20report.pdf), or use a server-generated URL that already handles encoding.

Make the link request a download

Add the Boolean download attribute when the intended action is saving the file rather than viewing it:

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.
<a href='/files/guide.pdf' download>Download the PDF guide</a>

You can suggest a filename by assigning a value:

<a href='/documents/annual-report.pdf' download='annual-report.pdf'>Download the annual report (PDF)</a>

The value is only a suggestion. The browser, the user’s settings and the server’s HTTP response headers can change the final filename or handling. A Content-Disposition filename from the response can take precedence.

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.

Same-origin limitation

For ordinary HTTP URLs, MDN documents download as working only for same-origin resources, plus blob: and data: URLs. If your PDF is on another origin, write a normal navigation link and do not guarantee that it will download:

<a href='https://cdn.example.org/reports/audit.pdf'>Read the audit report (PDF)</a>

For a cross-origin download you control, configure the file-serving origin to send an appropriate Content-Disposition response. That server-side header is more authoritative than a client-side hint, and browser behavior still varies.

Choose link text that explains the result

People should know both the destination and the file type before activating the link. “Read the accessibility report (PDF)” and “Download the accessibility report (PDF)” are clear. Avoid vague labels such as “click here,” particularly when several links appear together or when someone navigates by a list of links.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Use Read or View when normal navigation is expected.
  • Use Download when you include the download hint or otherwise configure a download response.
  • Include “PDF” in the visible text so the non-HTML resource is obvious.
  • Keep the wording accurate for keyboard, screen-reader and touch users; the action should not depend on seeing an icon alone.

Server requirements for a reliable PDF link

Serve the resource with the registered media type application/pdf. IETF RFC 8118 registers that media type. A correct response lets browsers identify the file even when the URL has an unusual extension or is generated dynamically.

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.

Check the response headers and status when a link fails. A successful response should return the PDF bytes, not an HTML error page. If authentication is required, the reader must have a valid session or the server must provide an authorized URL; changing the anchor alone cannot bypass access controls.

View versus download: a practical decision table

Goal Markup What you can promise
Let the reader read in the browser <a href='/files/guide.pdf'>Read the guide (PDF)</a> Navigation to the PDF URL; viewer or download behavior depends on browser and response.
Request a same-site download <a href='/files/guide.pdf' download>Download the guide (PDF)</a> A download treatment request; browser settings and headers may still affect the result.
Suggest a saved filename download='guide.pdf' A filename suggestion, not a guarantee.
Link to another origin <a href='https://example.org/files/guide.pdf'>Read the guide (PDF)</a> Ordinary navigation wording; do not promise download behavior from download.

Common patterns you can copy

Report in a document list

<ul>
  <li><a href='/reports/accessibility-2026.pdf'>Read the accessibility report (PDF)</a></li>
  <li><a href='/reports/accessibility-2026.pdf' download='accessibility-2026.pdf'>Download the accessibility report (PDF)</a></li>
</ul>

Offering both actions is useful when some readers prefer an in-browser viewer and others need a local copy. The labels make the difference explicit.

Generated or protected URLs

<a href='/download/report?id=4821' download>Download report 4821 (PDF)</a>

The URL can be an application route rather than a physical filename. Your server-side route must authenticate the request, set the PDF media type and return the file or an appropriate error. If the route redirects to another origin, the final response and browser policy determine whether the download request is honored.

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

Why a PDF opens in a new tab instead of downloading

A plain anchor performs navigation. Many browsers display PDFs in an integrated viewer, which may look like a new tab or an in-page document. This is expected behavior, not evidence that the href is wrong. A download attribute is only a request and is constrained by origin rules; it cannot override a browser’s security policy or a server’s response.

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.

When consistent saving matters, configure the response from the file’s origin with a suitable Content-Disposition header and test the result in the browsers your audience uses. Keep the visible label honest if some environments still open the viewer.

Troubleshoot a PDF anchor

Symptom Likely cause Fix
404 or “file not found” The URL is wrong, case differs, or the file is not deployed. Open the exact href directly, check case-sensitive paths and confirm the deployed location.
An HTML error page downloads as “.pdf” The route returned an error document with a PDF-looking URL. Inspect the HTTP status and response body; return a real PDF only on success.
download is ignored The resource is cross-origin, or browser/server policy overrides the hint. Use same-origin hosting, or configure Content-Disposition on the serving origin and retain navigation wording for external files.
The saved name is unexpected A response header, browser setting or user action supplied another name. Treat the download value as a suggestion; set and verify the server’s filename where you control it.
The PDF does not render The media type is missing or incorrect, or the bytes are corrupted. Serve application/pdf, verify the response contains the complete PDF and test the URL outside the page.
Readers do not understand the link Link text says only “here” or omits the file type. Name the document, state Read or Download, and add “(PDF)”.

Test before publishing

  1. Activate the link with a keyboard and confirm focus is visible.
  2. Open the exact URL in a new browser tab and verify it is the intended PDF.
  3. Check the response status and confirm Content-Type: application/pdf.
  4. Test the plain navigation link in the browsers used by your audience.
  5. For a same-origin download, test both the Boolean and filename forms of download.
  6. For a cross-origin file, verify the server’s headers and describe the action as reading unless download behavior is actually guaranteed.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your next step is generating a clean image or PDF capture of a page that contains a document link, ScreenshotNeo provides a URL-based API at screenshotneo.com. It accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP server supplies take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients.

One GET request returns a PNG, JPEG, WebP or PDF. Replace the example URL with the page you need:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for all options, including full-page captures with lazy images loaded, CSS-selector element captures, dark mode, device presets, custom viewports, retina scale, PDF paper size and margins, custom CSS and JavaScript, click-before-capture actions, waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, TTL caching, signed links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, usage data and the OpenAPI specification. Existing parameter names used by other screenshot APIs also work.

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

The Free plan includes 1,000 shots each month with no card. Paid plans are Starter ($5 for 3,000), Growth ($15 for 15,000), Pro ($39 for 60,000), Scale ($99 for 250,000) and Business ($249 for 1,000,000); yearly billing gives two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to begin.

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.

Frequently Asked Questions

Can I use an HTML anchor for a PDF generated on demand?

Yes. Point href at the application route that authenticates the request and returns the PDF bytes with the correct media type; the anchor does not require a physical .pdf file path.

Does adding target='_blank' force a PDF download?

No. It changes where navigation occurs, not whether the browser views or saves the file. Use the download request and server response guidance instead.

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

What should I show when a PDF is unavailable?

Return a meaningful HTTP error from the file route and provide page text explaining the problem; do not return an HTML error page with a successful PDF status.

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.