Document.Decrypt
Document.Decrypt method
تقوم بفك تشفير الوثيقة. اتصل بعد ذلك بـ Save للحصول على النسخة المفككة من الوثيقة.
public void Decrypt()
Examples
يعرض الكود النموذجي التالي كيفية فك تشفير ملف PDF.
[C#]
// The path to your PDF File.
string pdfFilePath = "YOUR_PDF_FILE_PATH";
// Open document
using (Document document = new Document(pdfFilePath, "YOUR_PASSWORD"))
{
// Decrypt PDF
document.Decrypt();
// Save updated PDF
document.Save(pdfFilePath);
}
[VB.NET]
' The path to your PDF File.
Dim pdfFilePath As String = "YOUR_PDF_FILE_PATH"
' Open document
Using document As Document = New Document(pdfFilePath, "YOUR_PASSWORD")
' Decrypt PDF
document.Decrypt()
' Save updated PDF
document.Save(pdfFilePath)
End Using
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF