Class Signature
Information
Représente le plugin Documentize.Signature. Utilisé pour signer des documents PDF.
public static class Signature
Héritage
Membres hérités
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Exemples
L’exemple montre comment signer un document PDF.
// Créer un objet SignOptions pour définir les instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "passwprd_of_your_pfx_file");
// Ajouter le chemin du fichier d'entrée
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Définir le chemin du fichier de sortie
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Effectuer le processus
Signature.Process(options);
L’exemple montre comment signer un document PDF avec des options supplémentaires.
// Créer un objet SignOptions pour définir les instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "passwprd_of_your_pfx_file");
// Ajouter le chemin du fichier d'entrée
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Définir le chemin du fichier de sortie
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Paramètres facultatifs
options.Reason = "ma Raison";
options.Contact = "mon Contact";
options.Location = "ma Localisation";
options.PageNumber = 3;
// Effectuer le processus
Signature.Process(options);
Méthodes
Process(SignOptions)
Signer un document PDF.
public static ResultContainer Process(SignOptions options)
Paramètres
options
SignOptions : Un objet d’options contenant des instructions pour l’opération.
Renvoie
ResultContainer : Un objet contenant le résultat de l’opération.
Exceptions
Si les options ne sont pas définies.
Namespace: Documentize Assembly: Documentize.dll