From 1670a09d049231045cb012d382e60af2c58c4c19 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 19 Aug 2023 11:58:18 +0100 Subject: [PATCH] Update SanitizeController.java --- .../controller/api/security/SanitizeController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/controller/api/security/SanitizeController.java b/src/main/java/stirling/software/SPDF/controller/api/security/SanitizeController.java index f03dcec8..a3adc5eb 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/security/SanitizeController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/security/SanitizeController.java @@ -38,19 +38,19 @@ public class SanitizeController { @RequestPart(required = true, value = "fileInput") @Parameter(description = "The input PDF file to be sanitized") MultipartFile inputFile, - @RequestParam(name = "removeJavaScript", required = false, defaultValue = "true") + @RequestParam(name = "removeJavaScript", required = false, defaultValue = "false") @Parameter(description = "Remove JavaScript actions from the PDF if set to true") Boolean removeJavaScript, - @RequestParam(name = "removeEmbeddedFiles", required = false, defaultValue = "true") + @RequestParam(name = "removeEmbeddedFiles", required = false, defaultValue = "false") @Parameter(description = "Remove embedded files from the PDF if set to true") Boolean removeEmbeddedFiles, - @RequestParam(name = "removeMetadata", required = false, defaultValue = "true") + @RequestParam(name = "removeMetadata", required = false, defaultValue = "false") @Parameter(description = "Remove metadata from the PDF if set to true") Boolean removeMetadata, - @RequestParam(name = "removeLinks", required = false, defaultValue = "true") + @RequestParam(name = "removeLinks", required = false, defaultValue = "false") @Parameter(description = "Remove links from the PDF if set to true") Boolean removeLinks, - @RequestParam(name = "removeFonts", required = false, defaultValue = "true") + @RequestParam(name = "removeFonts", required = false, defaultValue = "false") @Parameter(description = "Remove fonts from the PDF if set to true") Boolean removeFonts) throws IOException {