Class Security
Class Security
Pôvodný názov: Aspose.Pdf.Plugins Zhromaždenie: Aspose.PDF.dll (25.4.0)
Predstavuje aplikáciu Aspose.Pdf.Plugins.Security.
public sealed class Security : IPlugin
Inheritance
Implements
Z dedičných členov
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Príklad ukazuje, ako šifrovať dokument 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);
Príklad ukazuje, ako dešifrovať PDF dokument.
// 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(IPluginopcie)
Začína sa spracovanie aplikácie Aspose.Pdf.Plugins.Security so špecifikovanými parametrami.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Objekt možností, ktorý obsahuje pokyny pre Aspose.Pdf.Plugins.Security.
Returns
Objekt ResultContainer obsahujúci výsledok operácie.