From a844c7d09e8f0511f56d3cc3914085b8ad746ec5 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 00:12:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20format=20everything=20with=20pre?= =?UTF-8?q?-commit=20by=20stirlingbot=20(#5642)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request --------- Signed-off-by: stirlingbot[bot] Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> --- .../api/EditTableOfContentsController.java | 4 ++-- .../SPDF/model/api/misc/AddPageNumbersRequest.java | 3 ++- .../api/EditTableOfContentsControllerTest.java | 12 ++++++++---- build.gradle | 2 +- frontend/src-tauri/tauri.conf.json | 2 +- .../src/core/testing/serverExperienceSimulations.ts | 2 +- .../testing/serverExperienceSimulations.ts | 2 +- 7 files changed, 16 insertions(+), 11 deletions(-) diff --git a/app/core/src/main/java/stirling/software/SPDF/controller/api/EditTableOfContentsController.java b/app/core/src/main/java/stirling/software/SPDF/controller/api/EditTableOfContentsController.java index 38ddc8715..3cdf7fa2b 100644 --- a/app/core/src/main/java/stirling/software/SPDF/controller/api/EditTableOfContentsController.java +++ b/app/core/src/main/java/stirling/software/SPDF/controller/api/EditTableOfContentsController.java @@ -46,8 +46,8 @@ public class EditTableOfContentsController { @Operation( summary = "Extract PDF Bookmarks", description = "Extracts bookmarks/table of contents from a PDF document as JSON.") - public ResponseEntity>> extractBookmarks(@RequestParam("file") MultipartFile file) - throws Exception { + public ResponseEntity>> extractBookmarks( + @RequestParam("file") MultipartFile file) throws Exception { try (PDDocument document = pdfDocumentFactory.load(file)) { PDDocumentOutline outline = document.getDocumentCatalog().getDocumentOutline(); diff --git a/app/core/src/main/java/stirling/software/SPDF/model/api/misc/AddPageNumbersRequest.java b/app/core/src/main/java/stirling/software/SPDF/model/api/misc/AddPageNumbersRequest.java index c4b907465..46006c8dc 100644 --- a/app/core/src/main/java/stirling/software/SPDF/model/api/misc/AddPageNumbersRequest.java +++ b/app/core/src/main/java/stirling/software/SPDF/model/api/misc/AddPageNumbersRequest.java @@ -40,7 +40,8 @@ public class AddPageNumbersRequest extends PDFWithPageNums { private String fontColor; @Schema( - description = "Zero-padding width for page numbers (Bates Stamping). Set to 0 to disable padding", + description = + "Zero-padding width for page numbers (Bates Stamping). Set to 0 to disable padding", minimum = "0", defaultValue = "0", requiredMode = RequiredMode.NOT_REQUIRED) diff --git a/app/core/src/test/java/stirling/software/SPDF/controller/api/EditTableOfContentsControllerTest.java b/app/core/src/test/java/stirling/software/SPDF/controller/api/EditTableOfContentsControllerTest.java index 0a0e8c4dc..e07090e7a 100644 --- a/app/core/src/test/java/stirling/software/SPDF/controller/api/EditTableOfContentsControllerTest.java +++ b/app/core/src/test/java/stirling/software/SPDF/controller/api/EditTableOfContentsControllerTest.java @@ -85,7 +85,8 @@ class EditTableOfContentsControllerTest { when(mockOutlineItem.getNextSibling()).thenReturn(null); // When - ResponseEntity>> response = editTableOfContentsController.extractBookmarks(mockFile); + ResponseEntity>> response = + editTableOfContentsController.extractBookmarks(mockFile); // Then assertNotNull(response); @@ -109,7 +110,8 @@ class EditTableOfContentsControllerTest { when(mockCatalog.getDocumentOutline()).thenReturn(null); // When - ResponseEntity>> response = editTableOfContentsController.extractBookmarks(mockFile); + ResponseEntity>> response = + editTableOfContentsController.extractBookmarks(mockFile); // Then assertNotNull(response); @@ -145,7 +147,8 @@ class EditTableOfContentsControllerTest { when(childItem.getNextSibling()).thenReturn(null); // When - ResponseEntity>> response = editTableOfContentsController.extractBookmarks(mockFile); + ResponseEntity>> response = + editTableOfContentsController.extractBookmarks(mockFile); // Then assertNotNull(response); @@ -183,7 +186,8 @@ class EditTableOfContentsControllerTest { when(mockOutlineItem.getNextSibling()).thenReturn(null); // When - ResponseEntity>> response = editTableOfContentsController.extractBookmarks(mockFile); + ResponseEntity>> response = + editTableOfContentsController.extractBookmarks(mockFile); // Then assertNotNull(response); diff --git a/build.gradle b/build.gradle index f473cdf8f..0f871f360 100644 --- a/build.gradle +++ b/build.gradle @@ -67,7 +67,7 @@ springBoot { allprojects { group = 'stirling.software' - version = '2.4.3' + version = '2.4.4' configurations.configureEach { exclude group: 'commons-logging', module: 'commons-logging' diff --git a/frontend/src-tauri/tauri.conf.json b/frontend/src-tauri/tauri.conf.json index 40df48da2..ebcba59e4 100644 --- a/frontend/src-tauri/tauri.conf.json +++ b/frontend/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "Stirling-PDF", - "version": "2.4.3", + "version": "2.4.4", "identifier": "stirling.pdf.dev", "build": { "frontendDist": "../dist", diff --git a/frontend/src/core/testing/serverExperienceSimulations.ts b/frontend/src/core/testing/serverExperienceSimulations.ts index 800da47d9..d2c034b56 100644 --- a/frontend/src/core/testing/serverExperienceSimulations.ts +++ b/frontend/src/core/testing/serverExperienceSimulations.ts @@ -38,7 +38,7 @@ const FREE_LICENSE_INFO: LicenseInfo = { const BASE_NO_LOGIN_CONFIG: AppConfig = { enableAnalytics: true, - appVersion: '2.4.3', + appVersion: '2.4.4', serverCertificateEnabled: false, enableAlphaFunctionality: false, serverPort: 8080, diff --git a/frontend/src/proprietary/testing/serverExperienceSimulations.ts b/frontend/src/proprietary/testing/serverExperienceSimulations.ts index 64a995a20..dfffcaf13 100644 --- a/frontend/src/proprietary/testing/serverExperienceSimulations.ts +++ b/frontend/src/proprietary/testing/serverExperienceSimulations.ts @@ -48,7 +48,7 @@ const FREE_LICENSE_INFO: LicenseInfo = { const BASE_NO_LOGIN_CONFIG: AppConfig = { enableAnalytics: true, - appVersion: '2.4.3', + appVersion: '2.4.4', serverCertificateEnabled: false, enableAlphaFunctionality: false, enableDesktopInstallSlide: true,