mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
refactor(pdf-conversion): switch to QPDF for normalization process
- Replaced Ghostscript with QPDF in PDF normalization logic - Updated command handling to use QPDF version verification Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
parent
666bd57a2a
commit
63bb751039
@ -1362,7 +1362,7 @@ public class ConvertPDFToPDFA {
|
||||
private Path normalizePdfWithQpdf(Path inputPdf) {
|
||||
try {
|
||||
ProcessExecutorResult checkResult =
|
||||
ProcessExecutor.getInstance(ProcessExecutor.Processes.GHOSTSCRIPT)
|
||||
ProcessExecutor.getInstance(ProcessExecutor.Processes.QPDF)
|
||||
.runCommandWithOutputHandling(Arrays.asList("qpdf", "--version"));
|
||||
|
||||
if (checkResult.getRc() != 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user