Class Security
Contenuti
[
Nascondere
]Classe Sicurezza
Rappresenta il plugin Security
.
public sealed class Security : IPlugin
Costruttori
Nome | Descrizione |
---|---|
Security() | Il costruttore predefinito. |
Metodi
Nome | Descrizione |
---|---|
Process(IPluginOptions) | Avvia l’elaborazione Security con i parametri specificati. |
Esempi
L’esempio dimostra come crittografare un 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 decrittografare un 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);
Vedi Anche
- interfaccia IPlugin
- namespace Aspose.Pdf.Plugins
- assembly Aspose.PDF