Migrate to DevExpress.Document.Processor library

Replaced `DevExpress.Pdf.Core` with `DevExpress.Document.Processor` in `DocumentOperator.Infrastructure.csproj` to adopt a newer library for PDF processing. Removed the `Services\PdfProcessing\` folder reference.

Updated `DevExpressPdfProcessorTests` to reflect changes in the `ValidateAsync` method's behavior.

Introduced the `DevExpressPdfProcessor` class, implementing the `IPdfProcessor` interface. This class validates PDF documents and extracts metadata using the `DevExpress.Pdf` library. Added defensive input validation, metadata extraction, and exception handling for domain consistency.
This commit is contained in:
OlgunR
2026-06-23 10:33:43 +02:00
parent 10cfb0c838
commit b1d48418cf
3 changed files with 69 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ public class DevExpressPdfProcessorTests
// Assert
await act.Should().ThrowAsync<PdfProcessingException>()
.WithMessage("*invalid*", "corrupted PDF should throw exception");
.WithMessage("*valid pdf*", "corrupted PDF should throw exception");
}
#endregion