Class Security
Class Security
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Représente le plugin Aspose.Pdf.Plugins.Security.
public sealed class Security : IPlugin
Héritage
Implémente
Membres hérités
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Exemples
L’exemple démontre comment chiffrer un document PDF.
// créer Security
var plugin = new Security();
// créer un objet EncryptionOptions pour définir les instructions
var opt = new EncryptionOptions("123456", "qwerty", DocumentPrivilege.ForbidAll));
// ajouter le chemin du fichier d'entrée
opt.AddInput(new FileDataSource(inputPath));
// définir le chemin du fichier de sortie
opt.AddOutput(new FileDataSource(outputPath));
// effectuer le processus
plugin.Process(opt);
L’exemple démontre comment déchiffrer un document PDF.
// créer Security
var plugin = new Security();
// créer un objet DecryptionOptions pour définir les instructions
var opt = new DecryptionOptions("123456"));
// ajouter le chemin du fichier d'entrée
opt.AddInput(new FileDataSource(inputPath));
// définir le chemin du fichier de sortie
opt.AddOutput(new FileDataSource(outputPath));
// effectuer le processus
plugin.Process(opt);
Constructeurs
Security()
public Security()
Méthodes
Process(IPluginOptions)
Démarre le traitement Aspose.Pdf.Plugins.Security avec les paramètres spécifiés.
public ResultContainer Process(IPluginOptions options)
Paramètres
options
IPluginOptions
Un objet d’options contenant des instructions pour l’Aspose.Pdf.Plugins.Security.
Retourne
Un objet ResultContainer contenant le résultat de l’opération.