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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -