Class Security
Class Security
Το όνομα: Aspose.Pdf.Plugins Συγκέντρωση: Aspose.PDF.dll (25.4.0)
Αντιπροσωπεύει το Aspose.Pdf.Plugins.Security plugin.
public sealed class Security : IPlugin
Inheritance
Implements
Κληρονομημένα μέλη
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Το παράδειγμα δείχνει πώς να κρυπτογραφήσετε το έγγραφο 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);
Το παράδειγμα δείχνει πώς να αποκρυπτογραφήσει το έγγραφο 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(IPluginΕπιλογές)
Ξεκινά η επεξεργασία Aspose.Pdf.Plugins.Security με τις καθορισμένες παραμέτρους.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
Ένα αντικείμενο επιλογών που περιέχει οδηγίες για το Aspose.Pdf.Plugins.Security.
Returns
Ένα αντικείμενο ResultContainer που περιέχει το αποτέλεσμα της λειτουργίας.