namespace EnvelopeGenerator.Application.Common.Dto; /// /// /// public record AnnotationCreateDto { /// /// /// public long Id { get; set; } /// /// /// [Obsolete("Not required for DevExpress")] public int ElementId { get; init; } = -1; /// /// /// [Obsolete("Not required for DevExpress")] public string Name { get; init; } = string.Empty; /// /// /// [Obsolete("Not required for DevExpress")] public string Value { get; init; } = string.Empty; /// /// /// [Obsolete("Not required for DevExpress")] public string Type { get; init; } = string.Empty; /// /// Horizontal position of the signature field on the page. ///

/// Unit: INCHES (GdPicture14 native), origin at the top-left corner of the page, X increases to the right. ///
/// Conversion to DevExpress: Multiply by 100 (DX uses 1/100 inch). /// Convert: xDX = xInches * 100.0 ///
/// Conversion to PDF Points: Multiply by 72 (PSPDFKit, iText7 use 1/72 inch). /// Convert: xPt = xInches * 72.0 ///
public double? X { get; init; } /// /// Vertical position of the signature field on the page. ///

/// Unit: INCHES (GdPicture14 native), origin at the top-left corner of the page, Y increases downward. ///
/// Conversion to DevExpress: Multiply by 100 (DX uses 1/100 inch). /// Convert: yDX = yInches * 100.0 ///
/// Conversion to PDF Points (top-left origin): Multiply by 72. /// Convert: yPt = yInches * 72.0 ///
/// Conversion to PDF Points (bottom-left origin - iText7): Y-flip required. /// Convert: yPt = (pageHeightInches - yInches - elemHeightInches) * 72.0 ///
public double? Y { get; init; } /// /// /// [Obsolete("Not required for DevExpress")] public double? Width { get; init; } /// /// /// [Obsolete("Not required for DevExpress")] public double? Height { get; init; } /// /// Added to eliminate the need for SignatureDto in DevExpress /// public int? Page { get; init; } } /// /// /// public record AnnotationDto : AnnotationCreateDto { /// /// /// public long Id { get; init; } /// /// /// public DateTime AddedWhen { get; init; } /// /// /// public DateTime? ChangedWhen { get; init; } /// /// /// public string? ChangedWho { get; init; } }