Class Security
Inhalt
[
Ausblenden
]Sicherheitsklasse
Stellt das Security
-Plugin dar.
public sealed class Security : IPlugin
Konstruktoren
Name | Beschreibung |
---|---|
Security() | Der Standardkonstruktor. |
Methoden
Name | Beschreibung |
---|---|
Process(IPluginOptions) | Startet die Security -Verarbeitung mit den angegebenen Parametern. |
Beispiele
Das Beispiel zeigt, wie man ein PDF-Dokument verschlüsselt.
// 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);
Das Beispiel zeigt, wie man ein PDF-Dokument entschlüsselt.
// 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);
Siehe auch
- Schnittstelle IPlugin
- Namespace Aspose.Pdf.Plugins
- Assembly Aspose.PDF