Detect password protected PDFs

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Detect password protected PDFs Tue Oct 15, 2019 12:06 am • by Kazza
Hi

Is there any way to determine if a PDF file is password protected ?

I've tried about 6 or 7 attributes (like security, encryption, permission etc), but they are all blank.

Do I have to use some Scripting to work it out?

Any clues gratefully received.

Thanks!
Kazza
 
Posts: 2
Joined: Mon Oct 14, 2019 11:57 pm

Re: Detect password protected PDFs Tue Oct 15, 2019 10:41 am • by Mr_Noodle
This is something I got from another user recently. At least for the PDF files I have here, there is a "Security" attribute that is set to "Password Encrypted". I suggest filtering on that to see if that works for you.
Mr_Noodle
Site Admin
 
Posts: 8363
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Detect password protected PDFs Sun Oct 20, 2019 7:18 pm • by Kazza
Thanks - that seems to work!
The strange thing is that when I inspected that item (in Hazel) that field appeared empty. But now that I know what to test for its all good.

thanks!
Kazza
 
Posts: 2
Joined: Mon Oct 14, 2019 11:57 pm


Return to Support