Introduced the `ResultFilePath` property in the `ZugferdInvoice` model to store the path of generated result PDFs. Added a new service, `PdfResultPackageService`, to create result PDFs by converting the original PDF to PDF/A-3b format and attaching a report file. Updated `Upload.cshtml` and `Upload.cshtml.cs` to handle and display the `ResultFilePath`. Created a migration to add the `ResultFilePath` column to the database. Updated `Program.cs` to register the new service and added configuration sections in `appsettings.json` for input and output directories. Enhanced error handling and logging for better traceability.
21 lines
503 B
JSON
21 lines
503 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"ConnectionStrings": {
|
|
"EcmContext": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;TrustServerCertificate=True;"
|
|
},
|
|
"PdfExtraction": {
|
|
"OutputDirectory": "C:\\PdfExtractions"
|
|
},
|
|
"PdfResultReports": {
|
|
"InputDirectory": "C:\\PdfResultReports"
|
|
},
|
|
"PdfResults": {
|
|
"OutputDirectory": "C:\\PdfResults"
|
|
}
|
|
} |