Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Check if PDF is password protected

More
10 years 9 months ago #9126 by ashughes
Hello,

Is there a way to check if a PDF is password protected, other than calling Document.Open() and checking the return value? I would like to be able to check if the PDF is password protected without actually opening it if it's not.

Thanks,
Andrew
More
10 years 9 months ago #9137 by Davide
Hi,
sorry fo the delay.

Yes try to use :
Code:
Document.IsEncrypted()
For more info check this .
More
10 years 9 months ago #9152 by ashughes
Document.IsEncrypted() can only be called after a Document has been opened. I would like a way to check if a PDF is password protected without actually opening it. Such as a static method:
Code:
Document.IsEncrypted( String path )

Also, just for clarification, is "encryption" the same thing as password protection?
More
10 years 9 months ago - 10 years 9 months ago #9174 by Davide
Hi,
yes they are the same thing.

About the static method, we are evaluating to make a method that returns if the pdf isEncypted or not, but even in this method we have to open the pdf, check if is encrypted and return (same operation you do now).
Last edit: 10 years 9 months ago by Davide.
Time to create page: 0.396 seconds
Powered by Kunena Forum