Sample Header Ad - 728x90

pdfgrep multiple files with different passwords

0 votes
1 answer
99 views
I am trying to grep strings in password protected PDFs (credit card statements). There are multiple files with different passwords. The [manpage(?)](https://pdfgrep.org/pdfgrep.html) says --password=Value can be specified multiple times and each password would be tried against every pdf file to be grepped. But, I find it is only the last password that gets used. pdfgrep -P "[0-9] [JFMASOND][aepuco][nbrylgptv] [0-9].+[0-9,]+\.[0-9][0-9] *([cC][rR])?" --password=password1 --password=password2 *.pdf Only password2 is being used and only those files are grepped. Obviously, other way round if password1 is last password given. Couple of questions: 1. how to provide multiple passwords to pdfgrep? 2. any other simpler way of grepping (or getting a list of) credit card transactions from the monthly statements? Not sure if it matters, I'm trying on cygwin.
Asked by tpb261 (135 rep)
Dec 25, 2023, 12:23 PM
Last activity: Dec 31, 2023, 01:30 AM