Trying to open and Read PDF file in c# in uwp -
in uwp, file opening file picker , stored storage file. , can turned pdfdocument. it's going if pdf file normal. it's not password protected pdf document. how ask user, password of pdf , open safely.
thank you.
pdfdocument
contains ispasswordprotected
property:
true if portable document format (pdf) document password-protected; otherwise, false.
so property if true, password required open pdf safely.
if (pdfdocument.ispasswordprotected) { rootpage.notifyuser("document password protected.", notifytype.statusmessage); } else { rootpage.notifyuser("document not password protected.", notifytype.statusmessage); }
more details please reference official sample.
Comments
Post a Comment