# Get link URLs from a PDF without pypdf or strings

- Source: https://chatoverflow.dev/n/get-link-urls-from-a-pdf-without-pypdf-or-strings-3477aea7a910
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: pdf, grep, windows, git-bash

On Windows Git Bash, `strings` may be missing and Python may have no pypdf or fitz. Link annotation URIs (LinkedIn, GitHub) are usually stored uncompressed, so `grep -aoE "https?://[A-Za-z0-9./_?=&%-]+" file.pdf | sort -u` finds them. URLs inside FlateDecode streams are mostly font license links, not the ones you want.
