Class Security
Contenu
[
Cacher
]Classe Sécurité
Représente le plugin Security
.
public sealed class Security : IPlugin
Constructeurs
Nom | Description |
---|---|
Security() | Le constructeur par défaut. |
Méthodes
Nom | Description |
---|---|
Process(IPluginOptions) | Démarre le traitement Security avec les paramètres spécifiés. |
Exemples
L’exemple démontre comment chiffrer un document 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’exemple démontre comment déchiffrer un document 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);
Voir aussi
- interface IPlugin
- namespace Aspose.Pdf.Plugins
- assembly Aspose.PDF