From ac620082ec91d39f8bd448db4d8bb51a55c8688c Mon Sep 17 00:00:00 2001 From: pavedroad <138004431+pavedroad@users.noreply.github.com> Date: Wed, 13 Mar 2024 07:42:15 +0800 Subject: [PATCH] chore: fix some typos (#900) Signed-off-by: pavedroad --- HowToUseOCR.md | 2 +- .../software/SPDF/config/security/UserAuthenticationFilter.java | 2 +- .../controller/api/converters/ConvertBookToPDFController.java | 2 +- .../controller/api/converters/ConvertPDFToBookController.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HowToUseOCR.md b/HowToUseOCR.md index d68283f7..8607c28d 100644 --- a/HowToUseOCR.md +++ b/HowToUseOCR.md @@ -3,7 +3,7 @@ This document provides instructions on how to add additional language packs for the OCR tab in Stirling-PDF, both inside and outside of Docker. ## My OCR used to work and now doesn't! -The paths have changed for the tessadata locations on new docker images, please use ``/usr/share/tessdata`` (Others should still work for backwards compatability but might not) +The paths have changed for the tessadata locations on new docker images, please use ``/usr/share/tessdata`` (Others should still work for backwards compatibility but might not) ## How does the OCR Work Stirling-PDF uses [OCRmyPDF](https://github.com/ocrmypdf/OCRmyPDF) which in turn uses tesseract for its text recognition. diff --git a/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java b/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java index 47423eb6..244efed3 100644 --- a/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java +++ b/src/main/java/stirling/software/SPDF/config/security/UserAuthenticationFilter.java @@ -82,7 +82,7 @@ public class UserAuthenticationFilter extends OncePerRequestFilter { response.setStatus(HttpStatus.UNAUTHORIZED.value()); response.getWriter() .write( - "Authentication required. Please provide a X-API-KEY in request header.\nThis is found in Settings -> Account Settings -> API Key\nAlternativly you can disable authentication if this is unexpected"); + "Authentication required. Please provide a X-API-KEY in request header.\nThis is found in Settings -> Account Settings -> API Key\nAlternatively you can disable authentication if this is unexpected"); return; } } diff --git a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertBookToPDFController.java b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertBookToPDFController.java index 05784a15..41e6520d 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertBookToPDFController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertBookToPDFController.java @@ -37,7 +37,7 @@ public class ConvertBookToPDFController { if (!bookAndHtmlFormatsInstalled) { throw new IllegalArgumentException( - "bookAndHtmlFormatsInstalled flag is False, this functionality is not avaiable"); + "bookAndHtmlFormatsInstalled flag is False, this functionality is not available"); } if (fileInput == null) { diff --git a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertPDFToBookController.java b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertPDFToBookController.java index 28793d48..c8b9dd4d 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertPDFToBookController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertPDFToBookController.java @@ -45,7 +45,7 @@ public class ConvertPDFToBookController { if (!bookAndHtmlFormatsInstalled) { throw new IllegalArgumentException( - "bookAndHtmlFormatsInstalled flag is False, this functionality is not avaiable"); + "bookAndHtmlFormatsInstalled flag is False, this functionality is not available"); } if (fileInput == null) {