Class Security
Class Security
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Aspose.Pdf.Plugins.Security eklentisini temsil eder.
public sealed class Security : IPlugin
Miras
Uygulamalar
Miras Alınan Üyeler
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Örnekler
Örnek, PDF belgesini nasıl şifreleyeceğinizi gösterir.
// Security oluştur
var plugin = new Security();
// Talimatları ayarlamak için EncryptionOptions nesnesi oluştur
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// Giriş dosyası yolunu ekle
opt.AddInput(new FileDataSource(inputPath));
// Çıkış dosyası yolunu ayarla
opt.AddOutput(new FileDataSource(outputPath));
// işlemi gerçekleştir
plugin.Process(opt);
Örnek, PDF belgesini nasıl şifre çözme yapacağınızı gösterir.
// Security oluştur
var plugin = new Security();
// Talimatları ayarlamak için DecryptionOptions nesnesi oluştur
var opt = new DecryptionOptions("123456"));
// Giriş dosyası yolunu ekle
opt.AddInput(new FileDataSource(inputPath));
// Çıkış dosyası yolunu ayarla
opt.AddOutput(new FileDataSource(outputPath));
// işlemi gerçekleştir
plugin.Process(opt);
Yapıcılar
Security()
public Security()
Yöntemler
Process(IPluginOptions)
Belirtilen parametrelerle Aspose.Pdf.Plugins.Security işlemini başlatır.
public ResultContainer Process(IPluginOptions options)
Parametreler
options
IPluginOptions
Aspose.Pdf.Plugins.Security için talimatları içeren bir seçenek nesnesi.
Döner
İşlemin sonucunu içeren bir ResultContainer nesnesi.