Below are the steps and sample code to open an encrypted PDF file using the Rasterizer product.
Steps for opening encrypted PDF
- Create a
PdfDocumentwith the PDF file and the password.
- Open the file.
Sample Code - C#
PdfDocument pdfDocument = new PdfDocument(@"C:\MyDocument.pdf", "password"); pdfViewer.Open(pdfDocument);
DynamicPDF Viewer available on NuGet and is part of the
An example project showing this functionality can be cloned or viewed from GitHub:
DynamicPDF Viewer Information
More information can be found here: