Detect password protected PDFs

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!
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!