Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Check if PDF document is password protected

This sample shows how to check if an existing PDF document is password protected.

You can check if a PDF document is password protected using PdfDocument.IsPasswordProtected method. This method is static, so you can perform a check before opening a PDF document. This is useful if you don't know beforehand if a password is required to open a PDF document.