/// <summary> /// Gets the password associated with the PDFDocument. Returns null if there is no associated password. /// </summary> /// <param name="pdf_document"></param> /// <returns></returns> public string GetPassword(PDFDocument pdf_document) { if (Passwords.ContainsKey(pdf_document.Fingerprint)) { ReversibleEncryption re = new ReversibleEncryption(); return(re.DecryptString(Passwords[pdf_document.Fingerprint])); } else { return(null); } }
/// <summary> /// Gets the password associated with the PDFDocument. Returns null if there is no associated password. /// </summary> /// <param name="pdf_document"></param> /// <returns></returns> public string GetPassword(PDFDocument_ThreadUnsafe pdf_document) { string fingerprint = pdf_document.Fingerprint; if (Passwords.ContainsKey(fingerprint)) { ReversibleEncryption re = new ReversibleEncryption(); return(re.DecryptString(Passwords[fingerprint])); } else { return(null); } }