DecryptFile
PdfFileSecurity.DecryptFile method
Şifrelenmiş bir Pdf belgesinin şifresini sahip parolasıyla çözer. Belgenin sahip parolası yoksa, kullanıcı parolasını kullanmasına izin verilir. İşlem başarısız olursa bir istisna atar.
public bool DecryptFile(string ownerPassword)
Parametre | Tip | Tanım |
---|---|---|
ownerPassword | String | Sahip şifresi. |
Geri dönüş değeri
Başarı için doğru.
Örnekler
[C#]
string inFile = "D:\\input.pdf"; // TestPath yeniden atanabilir.
string outFile = "D:\\output.pdf"; // TestPath yeniden atanabilir.
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
- class PdfFileSecurity
- ad alanı Aspose.Pdf.Facades
- toplantı Aspose.PDF