Application Development and Automation 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: 
Read only

PDF protected by password

Former Member
0 Likes
665

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
Read only

Former Member
0 Likes
601

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.

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 REPLY 1
Read only

Former Member
0 Likes
602

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.