From 3868b4eca2cd18dee6ccc4801559cb4ea6737f3d Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Fri, 5 Apr 2024 13:05:16 +0100 Subject: [PATCH] updates --- README.md | 2 +- .../SPDF/controller/api/misc/ExtractImageScansController.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 41197b3c..bb7674b5 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ Stirling PDF currently supports 26! | Japanese (日本語) (ja_JP) | ![92%](https://geps.dev/progress/92) | | Dutch (Nederlands) (nl_NL) | ![92%](https://geps.dev/progress/92) | | Greek (Ελληνικά) (el_GR) | ![77%](https://geps.dev/progress/77) | -| Turkish (Türkçe) (tr_TR) | ![82%](https://geps.dev/progress/82) | +| Turkish (Türkçe) (tr_TR) | ![99%](https://geps.dev/progress/99) | | Indonesia (Bahasa Indonesia) (id_ID) | ![87%](https://geps.dev/progress/87) | | Hindi (हिंदी) (hi_IN) | ![88%](https://geps.dev/progress/88) | | Hungarian (Magyar) (hu_HU) | ![87%](https://geps.dev/progress/87) | diff --git a/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java b/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java index dc17dc9c..9ed00dd8 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java @@ -9,7 +9,6 @@ import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.stream.Collectors; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @@ -143,8 +142,7 @@ public class ExtractImageScansController { .runCommandWithOutputHandling(command); // Read the output photos in temp directory - List tempOutputFiles = - Files.list(tempDir).sorted().toList(); + List tempOutputFiles = Files.list(tempDir).sorted().toList(); for (Path tempOutputFile : tempOutputFiles) { byte[] imageBytes = Files.readAllBytes(tempOutputFile); processedImageBytes.add(imageBytes);