namespace DocumentService.Application.Common.DTOs;
///
/// PDF/A validation result including conformance level and validation errors/warnings
///
public record PdfAValidationResult
{
///
/// Whether the PDF is valid (no errors)
///
public bool IsValid { get; init; }
///
/// PDF version (e.g., "1.4", "1.7")
///
public string PdfVersion { get; init; } = string.Empty;
///
/// Number of pages in the PDF
///
public int PageCount { get; init; }
///
/// File size in bytes
///
public long FileSize { get; init; }
///
/// Whether the PDF is encrypted
///
public bool Encrypted { get; init; }
///
/// PDF/A version (e.g., "PDF/A-1b", "PDF/A-2a", "PDF/A-3u") or null if not PDF/A compliant
///
public string? PdfAVersion { get; init; }
///
/// Whether the PDF conforms to PDF/A standard
///
public bool PdfACompliant { get; init; }
///
/// Validation errors (e.g., "PDF/A documents cannot be encrypted")
///
public IReadOnlyList Errors { get; init; } = [];
///
/// Validation warnings (e.g., "Manual verification recommended: All fonts must be embedded")
///
public IReadOnlyList Warnings { get; init; } = [];
}