refactor(pdf-conversion): replace Ghostscript with QPDF for normalization

- Updated PDF normalization process to use QPDF instead of Ghostscript
- Aligned command execution logic with QPDF implementation

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
Balázs Szücs 2025-11-11 09:30:18 +01:00
parent 0cbe0ee188
commit 5e2caa48a3

View File

@ -1382,7 +1382,7 @@ public class ConvertPDFToPDFA {
normalizedPdf.toAbsolutePath().toString());
ProcessExecutorResult result =
ProcessExecutor.getInstance(ProcessExecutor.Processes.GHOSTSCRIPT)
ProcessExecutor.getInstance(ProcessExecutor.Processes.QPDF)
.runCommandWithOutputHandling(command);
if (result.getRc() == 0 && Files.exists(normalizedPdf)) {