Refactored `Pkcs11Options` by removing `DefaultCertificationLevel` and improving property documentation. Replaced `VisualSignature` in `PdfSignOptionsDto` with `Appearance` using the new `PdfSignatureAppearanceDto` class, which encapsulates signature appearance details, including font and color settings. Enhanced `PdfSignatureCertificationLevel` enum with more descriptive values and added XML documentation. Updated `IPdfDigitalSignatureService` to support optional signature images and removed redundant methods. Refactored `PdfDigitalSignatureService` to streamline appearance handling, validate inputs, and improve maintainability. Removed unused methods and added support for `PdfSignatureAppearanceDto`. Simplified `PdfSignatureController` by consolidating form properties into `PdfSignOptionsDto`. Improved code readability and flexibility while removing redundant logic.
28 lines
599 B
C#
28 lines
599 B
C#
namespace EnvelopeGenerator.Application.Common.Enums;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public enum PdfSignatureCertificationLevel
|
|
{
|
|
/// <summary>
|
|
/// All changes are allowed
|
|
/// </summary>
|
|
NoCertification = 0,
|
|
|
|
/// <summary>
|
|
/// No changes are allowed
|
|
/// </summary>
|
|
NoChangesAllowed,
|
|
|
|
/// <summary>
|
|
/// Allows users to fill in forms and sign the document.
|
|
/// </summary>
|
|
FillForms,
|
|
|
|
/// <summary>
|
|
/// Allows users to fill in forms, create, modify and delete annotations, and sign the document.
|
|
/// </summary>
|
|
FillFormsAndAnnotate
|
|
}
|