PdfFileSecurity.DecryptFile
İçindekiler
[
Saklamak
]PdfFileSecurity.DecryptFile yöntemi
Sahip parolası ile şifrelenmiş bir Pdf belgesini çözer. Belgenin sahip parolası yoksa, kullanıcı parolasının kullanılmasına izin verilir. İşlem başarısız olursa bir istisna fırlatır.
public bool DecryptFile(string ownerPassword)
| Parametre | Tür | Açıklama |
|---|---|---|
| ownerPassword | String | Sahip parolası. |
Dönüş Değeri
Başarı için doğru.
Örnekler
[C#]
string inFile = "D:\\input.pdf"; //The TestPath may be re-assigned.
string outFile = "D:\\output.pdf"; //The TestPath may be re-assigned.
PdfFileSecurity fileSecurity = new PdfFileSecurity(inFile,outFile);
fileSecurity.DecryptFile("ownerpass");
[Visual Basic]
Dim inFile As String = "D:\\input.pdf" 'The TestPath may be re-assigned.'
Dim outFile As String = "D:\\output.pdf" 'The TestPath may be re-assigned.'
Dim fileSecurity As PdfFileSecurity = New PdfFileSecurity(inFile,outFile)
fileSecurity.DecryptFile("ownerpass")
Ayrıca Bakınız
- sınıf PdfFileSecurity
- ad alanı Aspose.Pdf.Facades
- derleme Aspose.PDF