I have an array of bytes in C # and I need to know if it is a password protected PDF document. How can I make this determination?
I am checking the PDF document for a cookie to determine if it is a PDF document, but I do not know what is best when determining if a password is protected.
I do not need to open the document (although as long as no user interface is required), this is a background process, I am fine with this if it helps).
I just need to know if there is a password in this PDF.
EDIT: If you specify iTextSharp, I would really appreciate if you would specify a specific resource in this API that addresses this issue.
lance source share