How to extract all links from pdf file?

المعرفة:: Regex
الحالة:: ملاحظة_مؤرشفة
المراجع:: https://stackoverflow.com/questions/31436357/how-to-extract-all-links-from-pdf-file


strings "somePDFfile.pdf" | grep http  

This works even better if you use pdftk to uncompress it first (credits: Ben Stern):

pdftk in.pdf cat output out.pdf uncompress; strings out.pdf | grep -i http  

Last update : August 14, 2023
Created : January 24, 2023

Comments

Comments