Class PdfUnlocker
Provides methods to remove password protection from a PDF document.
public static class PdfUnlocker
- Inheritance
-
PdfUnlocker
- Inherited Members
Examples
Example: Remove password protection from a PDF
using LMKit.Document.Pdf;
PdfUnlocker.Unlock("protected.pdf", "mypassword", "unprotected.pdf");
Remarks
The PdfUnlocker class opens a password-protected PDF using the provided password and saves it as an unprotected PDF. The original password must be known to unlock the document.
Methods
- Unlock(Attachment, string)
Opens a password-protected PDF attachment and returns an unlocked copy.
- Unlock(string, string)
Opens a password-protected PDF file and returns an unlocked copy as an attachment.
- Unlock(string, string, string)
Opens a password-protected PDF file and saves it without protection.