Renamed namespaces and related identifiers from EnvelopeGenerator.WebUI to EnvelopeGenerator.Server across the project. This change affects data models, services, controllers, and configuration files to ensure consistency with the new architecture. Updated @using directives in Razor components and other files to reflect the new namespace structure. Adjusted project references in EnvelopeGenerator.Server.csproj to point to the new EnvelopeGenerator.Server.Client project. Modified middleware and logging configurations to use the new EnvelopeGenerator.Server namespace, including changes in Program.cs and appsettings.json. Updated resource and file references to use the new EnvelopeGenerator.Server path, ensuring correct resource loading. Adjusted configuration options in Program.cs to use the new namespace for options classes, such as ApiOptions and PdfViewerOptions. Updated authentication scheme names and related constants to align with the new namespace structure. Revised comments and documentation to reflect the new namespace, ensuring clarity and consistency in the codebase.
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
namespace EnvelopeGenerator.Server.Client.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a pre-assigned signature annotation position on a specific page.
|
|
/// <br/><br/>
|
|
/// <b>Coordinate unit (X, Y):</b> Inches (GdPicture14 native unit),
|
|
/// origin at the <b>top-left</b> corner of the page, both axes increase downward/rightward.
|
|
/// <br/><br/>
|
|
/// <b>Conversion to DevExpress:</b> Multiply by 100 (DX uses 1/100 inch).
|
|
/// Convert: <c>xDX = xInches * 100.0</c>
|
|
/// <br/>
|
|
/// <b>Conversion to PDF Points:</b> Multiply by 72 (1 inch = 72 points).
|
|
/// Convert: <c>xPt = xInches * 72.0</c>
|
|
/// <br/>
|
|
/// <b>Y-axis for PDF (bottom-left origin):</b> Flip required for iText7.
|
|
/// Convert: <c>yPt = (pageHeightInches - yInches - elemHeightInches) * 72.0</c>
|
|
/// </summary>
|
|
[Obsolete("Use SignatureDto with SignatureService.")]
|
|
public record AnnotationDto
|
|
{
|
|
/// <summary>Unique identifier of the annotation.</summary>
|
|
public long Id { get; init; }
|
|
|
|
/// <summary>1-based page number within the document.</summary>
|
|
public int Page { get; init; }
|
|
|
|
/// <summary>Horizontal position in INCHES from the left edge of the page.</summary>
|
|
public double X { get; init; }
|
|
|
|
/// <summary>Vertical position in INCHES from the top edge of the page.</summary>
|
|
public double Y { get; init; }
|
|
}
|