ScreenshotNeo

BlogHTML to image & PDF

What Is a PDF Link and How Does It Work?

A PDF link is a clickable area that opens another page, website, email address, or file. Learn how links work, how to create them, and how to fix broken links.

By the ScreenshotNeo team1 October 20268 min read

Direct answer: A PDF link is a clickable region in a PDF file. In the PDF structure, that region is usually a Link annotation. The annotation points to an internal destination, such as another page in the same document, or to an action such as opening an external URL. When someone clicks, the PDF viewer interprets the annotation and navigates to the target or hands it to the appropriate browser or handler.

A visible URL in a PDF is not automatically a working or accessible link. The file must contain a link annotation, and accessible PDFs should also contain tagged /Link structure that associates the annotation with understandable link text.

A link annotation is a geometric region on a PDF page. It can cover text, a button-shaped area, an image, or any other rectangle. The region is the “hot zone” that the viewer detects when a pointer or keyboard focus reaches it. The W3C PDF11 technique describes PDF links as a Link tag with a link object reference (the Link annotation) and text objects.

2. A destination or action supplies the target

Type What it does Typical target
Internal destination Moves within the current PDF A page, named destination, or specific view
External URI action Passes a URL to a browser or handler https://example.com
Email URI Asks the operating system or mail app to compose a message mailto:help@example.com
File or other action Requests another supported PDF behavior Viewer-dependent

Viewer security settings determine whether an action runs. A PDF reader may warn before opening an external site, block local files, or refuse an unsupported action.

3. The viewer handles the click

When a user activates the region, the viewer checks the annotation, resolves its destination or action, and navigates. Internal links stay in the document. External links are normally opened by a browser or another registered handler. The exact result can differ between desktop readers, mobile viewers, browser PDF previews, and embedded document components.

In a tagged PDF, a /Link element connects the link text to its annotation. Screen readers can then expose the text and destination as a link, and keyboard users can reach it in reading order. A PDF can look clickable while lacking this structure, so visual inspection alone is not an accessibility check.

Question Internal link External link
Where does it go? Another location in the same file A website, email address, file, or other handler
Does it require internet access? No Usually, if the target is online
What can break it? Deleted pages, changed destinations, damaged edits Wrong URI, redirects, network access, viewer security
Best use Table of contents, cross-references, “back to top” controls References, downloads, support, registration, contact links
  1. Open the source document in Word, LibreOffice, Google Docs, or another authoring tool.
  2. Select descriptive text or the object that should be clickable.
  3. Choose the editor’s Insert hyperlink command.
  4. Enter an internal destination or a complete external URI, including https:// when appropriate.
  5. Export as PDF. Choose a tagged or accessible PDF option when the tool provides one.
  6. Open the exported file in at least one desktop viewer and one browser viewer.
  7. Activate every link with a pointer and keyboard navigation.

Creating the link in the source document usually preserves the relationship between the visible text and the annotation better than relying on automatic URL detection after export.

  1. Open the PDF in a PDF editor that supports link annotations.
  2. Choose the command named Create Link, Add Link, or similar.
  3. Drag over the exact text or page area that should be clickable.
  4. Choose the action: open a web page, jump to a page view, open a file, or use another supported target.
  5. Set the link’s visible border or make it invisible if the design already communicates clickability.
  6. Save a new copy, then test the result in more than one viewer.

After editing, confirm that the annotation still covers the intended text. Reflow, cropping, page replacement, and object movement can leave a link in the wrong location.

This is different from embedding a hyperlink inside the PDF. Upload the file to a service that provides a stable URL, or use a document-sharing workflow that generates a browser link. Check whether the URL expires, whether recipients need an account, and whether downloading, viewing, or commenting is allowed.

  • Use descriptive link text. “Download the 2026 application form” gives more context than “click here” or a bare URL.
  • Preserve tagged structure. Confirm that the exported PDF contains tagged /Link elements associated with the visible text.
  • Keep link purpose clear. The link text or nearby sentence should explain what opens and why.
  • Check keyboard access. Tab through the document in a viewer that supports PDF keyboard navigation.
  • Use sufficient visual distinction. Color alone should not be the only sign that text is clickable.
  • Retest after edits. Page moves, cropping, and replacement can change annotation coordinates.

Automatic detection of text that merely looks like a URL may create a visually usable link without producing reliable tagged structure. Authoring the link explicitly or adding it with a PDF editor is safer when accessibility matters.

Complete examples

In an authoring tool, select the words Read the installation guide and set the target to:

https://docs.example.com/install

The PDF should contain a link annotation whose rectangle covers those words and an external URI action containing that exact target.

  1. Create a heading for “Troubleshooting” on page 8.
  2. Assign that heading a named destination or page view in the authoring tool.
  3. Link the table-of-contents entry to that destination.
  4. Test it after inserting or deleting pages, because page numbers and destinations can change.

Example: generating a PDF from a web page

When the source is a web page, a browser automation tool can load the page and print it to PDF. Preserve the page’s own links during conversion, then inspect the resulting PDF because CSS layout, overlays, and JavaScript can affect the annotation positions.

Or skip the browser setup

ScreenshotNeo can capture a URL as a PDF through one GET request. See the ScreenshotNeo API documentation for PDF options such as paper size, margins, landscape mode, and page ranges.

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

Cookie and consent banners, newsletter popups, and chat widgets are removed before the shot. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers identify the page verdict and billing result. ScreenshotNeo also provides an MCP server so AI agents can take screenshots, inspect pages, and capture PDFs. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

Create a free ScreenshotNeo account.

Symptom Likely cause Fix
Nothing happens when clicked No annotation, an annotation outside the visible text, or a viewer that does not expose the link Inspect the PDF with a link or accessibility checker and recreate the annotation over the intended area.
The wrong page opens Destination changed after pages were inserted, deleted, or reordered Recreate the internal destination and retest every table-of-contents entry.
The browser says the URL is invalid Typo, missing scheme, encoded characters, or a line break inserted into the URI Copy the exact target, use a complete URI such as https://example.com/path, and test it outside the PDF.
Works on desktop but not in a browser preview Viewer differences or blocked actions Test in another viewer and avoid unsupported actions when broad compatibility is required.
Link opens a warning Viewer security policy for external or local actions Confirm the target is trusted and use a normal HTTPS URL where possible. Do not instruct users to disable security controls.
Screen reader does not announce a link Missing or incorrect tags; URL text was auto-detected only visually Export a tagged PDF or recreate the link in a PDF editor, then inspect the tag tree.
Link moved away from its text Page content was cropped, resized, or edited after the annotation was created Reopen the editor, reposition the clickable rectangle, save, and retest.
Shared PDF URL returns access denied Private permissions, expired share link, or required account Check the hosting service’s permissions, expiration, and recipient settings.

Testing checklist

  • Open the file in the authoring tool’s preview and in the exported PDF.
  • Test internal links after changing page order.
  • Test external links with and without an internet connection so failures are distinguishable.
  • Check that the clickable rectangle matches the visible text or control.
  • Use keyboard navigation to reach each link.
  • Use a PDF accessibility checker to confirm tagged link structure.
  • Try at least one desktop reader and one browser-based viewer.
  • Verify that every hosted target still returns the intended resource.

Performance, reliability, and cost considerations

  • Keep targets stable. Prefer permanent HTTPS URLs, named internal destinations, and redirects you control.
  • Do not overload a document with unnecessary actions. Each external action introduces network, permission, and viewer variability.
  • Retest generated PDFs. Browser-to-PDF conversion can change layout and annotation coordinates when fonts, images, or responsive breakpoints change.
  • Host shared files deliberately. A share URL is a distribution decision; review expiration, permissions, bandwidth, and account requirements.
  • For automated PDF capture, control waiting conditions. Wait for the page content needed by the PDF, and use consistent viewport, timezone, and geolocation settings when rendering must be repeatable.
  • With ScreenshotNeo, failed loads and other non-clean results are not billed. Use the X-Page-Verdict and X-Billed response headers when monitoring an automated pipeline.

FAQ

No. A PDF link is an interactive region inside a document. A link to a PDF is a web URL whose response is a PDF file.

Yes. An internal destination can jump to a page, named destination, or view in the same file.

No. Text can look like a URL without containing a Link annotation. Test activation and inspect the PDF structure.

Usually, a mailto: URI can invoke the user’s mail handler, but support and security prompts vary by viewer and device.

Viewers implement PDF actions differently and apply different security policies. Use common URI actions when compatibility matters and test the viewers your audience uses.

Upload the PDF to a service that provides a stable access URL or use a document-sharing workflow. Check permissions, expiration, download rules, and whether recipients need an account.