Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF protected by password

iaki_vila
Active Contributor
0 Kudos

Hi gurus,

My question is very simple, is it possible to verify if a PDF file is protected by password?.

I need to know it before to pick them up in order to show it in ALV like an error.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

When I open a pdf in notepad, I can see the that for password protected files, there is text like R/Encrypt . For normal file, this text is not present. Perhaps you can search for this string after reading the pdf binary.

1 REPLY 1

Former Member
0 Kudos

When I open a pdf in notepad, I can see the that for password protected files, there is text like R/Encrypt . For normal file, this text is not present. Perhaps you can search for this string after reading the pdf binary.