mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
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:
parent
0cbe0ee188
commit
5e2caa48a3
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user