Consolidated DTOs under `DocumentService.Application.Common.DTOs.Requests` to centralize and align them with the application layer. Introduced `PdfBase64RequestBase` to encapsulate shared properties, reducing redundancy across request DTOs. Updated controllers, clients, and tests to use the new DTO structure. Removed redundant DTOs and cleaned up unused namespaces and comments. Improved documentation and ensured consistent naming conventions across the codebase.
19 lines
583 B
C#
19 lines
583 B
C#
namespace DocumentService.Application.Common.DTOs.Requests;
|
|
|
|
/// <summary>
|
|
/// Request DTO for converting a standard PDF to PDF/A format (Base64 JSON)
|
|
/// </summary>
|
|
public record ConvertToPdfARequest : PdfBase64RequestBase
|
|
{
|
|
/// <summary>
|
|
/// Target PDF/A conformance level. Defaults to "PDF/A-3b".
|
|
/// </summary>
|
|
/// <example>PDF/A-3b</example>
|
|
public string? PdfALevel { get; init; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Request DTO for converting a PDF/A document back to standard PDF (Base64 JSON)
|
|
/// </summary>
|
|
public record ConvertFromPdfARequest : PdfBase64RequestBase;
|