Introduced `ESignParams` for configurable e-signature settings, including `ApplicationName` and `DefaultReason`. Updated `DocReceiverElementDto` and `PdfSignOptionsDto` to support new properties. Registered `ESignParams` in DI container. Refactored `SignPdfByElementCommand` to include new fields and improved error handling. Added `SignPdfByEnvelopeReceiverCommand` to enable signing documents for envelope receivers. Replaced DevExpress with PdfSharp for PDF rendering in `ReceiverSignedPage.razor`, improving layout and flexibility. Enhanced `PdfSignatureController` with a new endpoint for signing documents by envelope key. Added `DataIntegrityException` for better error handling. Updated `appsettings.json` with `ESignParams` configuration.
55 lines
1.0 KiB
C#
55 lines
1.0 KiB
C#
using EnvelopeGenerator.Application.Common.Enums;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public sealed record PdfSignOptionsDto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public long DocumentElementId { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string Reason { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string Location { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string? Email { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string? Phone { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string ApplicationName { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public PdfSignatureCertificationLevel CertificationLevel { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public PdfSignatureAppearanceDto? Appearance { get; set; }
|
|
}
|