I have many PDFs and need to download all the hyperlinks within them. I have tried opening the PDF in Firefox and using Download Them All but I find it often does not get them all. So how can I accomplish this?
Interesting question! I'm partial to command-line utilities whenever available so in this case I'm using the following:
Both are portable (PDFtk is available only as an installer but you can copy pdftk.exe and libiconv2.dll elsewhere and uninstall it if you want). You can of course substitute Wget with cURL or whatever you like.
The following executed from the Windows command line will download all documents/pages linked to from a PDF:
for /f "tokens=2" %l in ('pdftk Test.pdf dump_data_annots ^| find "AnnotActionURI"') do wget "%l"
Use the following command for multiple PDFs:
for %f in (*.pdf) do for /f "tokens=2" %l in ('pdftk "%~f" dump_data_annots ^| find "AnnotActionURI"') do wget "%l"