Class Security
Class Security
İsim alanı : Aspose.Pdf.Plugins Toplama: Aspose.PDF.dll (25.4.0)
Aspose.Pdf.Plugins.Security eklentisi oluşturur.
public sealed class Security : IPlugin
Inheritance
Implements
mirasçı üyeleri
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Örnek PDF belgesini nasıl şifreleyeceğinizi gösterir.
// create Security
var plugin = new Security();
// create EncryptionOptions object to set instructions
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);
Örnek, PDF belgesinin nasıl şifreleneceğini gösterir.
// create Security
var plugin = new Security();
// create DecryptionOptions object to set instructions
var opt = new DecryptionOptions("123456"));
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);
Constructors
Security()
public Security()
Methods
Process(IPlugin seçenekleri)
Aspose.Pdf.Plugins.Security işlemini belirlenen parametrelerle başlatır.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Aspose.Pdf.Plugins.Security için talimatları içeren bir seçenek nesnesi.
Returns
Operasyonun sonuçlarını içeren bir ResultContainer nesnesi.