Enhanced `PdfSignOptionsDto` with a `VisualSignature` property and introduced the `PdfVisualSignatureOptionsDto` class for configuring visual signature options. Updated `PdfDigitalSignatureService` to handle visual signatures, including page number resolution, signature bounds calculation, and appearance customization. Refactored `PdfSignatureController` to support visual signatures by extending `SignPdfForm` with `SignatureImageFile` and `VSignature` properties. Improved validation for page numbers and signature dimensions. Streamlined `Sign` and `IsSigned` endpoints for better clarity and reduced redundancy. Added XML documentation for improved API clarity and performed general code cleanup to enhance maintainability.
17 lines
579 B
C#
17 lines
579 B
C#
using EnvelopeGenerator.Application.Common.Enums;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
public sealed record PdfSignOptionsDto
|
|
{
|
|
public string? UUID { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Reason { get; set; }
|
|
public string? Location { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? ApplicationName { get; set; }
|
|
public PdfSignatureCertificationLevel? CertificationLevel { get; set; }
|
|
public PdfVisualSignatureOptionsDto? VisualSignature { get; set; }
|
|
}
|