Class Security
Class Security
Le nom : Aspose.Pdf.Plugins Assemblée: Aspose.PDF.dll (25.4.0)
Represente il plugin Aspose.Pdf.Plugins.Security.
public sealed class Security : IPlugin
Inheritance
Implements
I membri ereditari
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’esempio dimostra come crittografare il documento PDF.
// 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);
L’esempio dimostra come decodificare il documento PDF.
// 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(Options IPlugin)
Inizia il trattamento Aspose.Pdf.Plugins.Security con i parametri specificati.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Un oggetto di opzioni che contiene istruzioni per Aspose.Pdf.Plugins.Security.
Returns
Un oggetto ResultContainer che contiene il risultato dell’operazione.