compress fix

This commit is contained in:
Anthony Stirling
2023-03-22 19:24:43 +00:00
parent 82da3c0027
commit b5a59ddb6a
6 changed files with 36 additions and 6 deletions

View File

@@ -80,6 +80,8 @@ public class CompressController {
// Prepare the OCRmyPDF command
List<String> command = new ArrayList<>();
command.add("ocrmypdf");
command.add("--skip-text");
command.add("--tesseract-timeout=0");
command.add("--optimize");
command.add(String.valueOf(optimizeLevel));