From f2015cecbdf006e28a3a4469809ca2262d9ee81f Mon Sep 17 00:00:00 2001 From: HHHHHMMMM <34933854+HHHHHMMMM@users.noreply.github.com> Date: Fri, 14 Jun 2024 01:13:38 +0800 Subject: [PATCH] When converting PDF to word, add parameters to speed up soffice startup (#1450) When converting PDF to word, add parameters to speed up soffice startup --- src/main/java/stirling/software/SPDF/utils/PDFToFile.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/stirling/software/SPDF/utils/PDFToFile.java b/src/main/java/stirling/software/SPDF/utils/PDFToFile.java index 7c419220..920e987b 100644 --- a/src/main/java/stirling/software/SPDF/utils/PDFToFile.java +++ b/src/main/java/stirling/software/SPDF/utils/PDFToFile.java @@ -140,6 +140,8 @@ public class PDFToFile { new ArrayList<>( Arrays.asList( "soffice", + "--headless", + "--nologo", "--infilter=" + libreOfficeFilter, "--convert-to", outputFormat,