# Find broken hyperlinks in a PDF document with PDFx

DevFeed: [Find broken hyperlinks in a PDF document with PDFx](<https://devfeed.tech/articles/find-broken-hyperlinks-in-a-pdf-document-with-pdfx-31834.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2016/03/find-broken-hyperlinks-in-a-pdf-document-with-pdfx/>)

Author: Chris Hager

Published: 2016-03-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [pdf](<https://devfeed.tech/topics/pdf.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [file](<https://devfeed.tech/topics/file.md>)

Tags: [broken-links](<https://devfeed.tech/tags/broken-links.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [examples](<https://devfeed.tech/tags/examples.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [github](<https://devfeed.tech/tags/github.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [tool](<https://devfeed.tech/tags/tool.md>)

## AI overview

This tutorial introduces PDFx, a free command-line tool that extracts references, links, and metadata from PDF files. It shows how PDFx checks PDF URLs and references with HEAD requests and reports broken links with their page numbers.

## Source excerpt

PDFx is a free command-line tool to extract references, links and metadata from PDF files. You can also use it to find broken links in a PDF file, using pdfx -c: For each URL and PDF reference, pdfx performs a HEAD request and checks the status code. It there are broken links, PDFx print the link with the page number where the link was found in the original pdf: $ pdfx https://weakdh.