diff --git a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java index 042fb07a..ebba9815 100644 --- a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java +++ b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java @@ -124,6 +124,7 @@ public class EndpointConfiguration { addEndpointToGroup("Other", "flatten"); addEndpointToGroup("Other", "repair"); addEndpointToGroup("Other", "remove-blanks"); + addEndpointToGroup("Other", "remove-annotations"); addEndpointToGroup("Other", "compare"); addEndpointToGroup("Other", "add-page-numbers"); addEndpointToGroup("Other", "auto-rename"); diff --git a/src/main/java/stirling/software/SPDF/controller/web/OtherWebController.java b/src/main/java/stirling/software/SPDF/controller/web/OtherWebController.java index 8438b26d..ce4ae649 100644 --- a/src/main/java/stirling/software/SPDF/controller/web/OtherWebController.java +++ b/src/main/java/stirling/software/SPDF/controller/web/OtherWebController.java @@ -126,7 +126,13 @@ public class OtherWebController { model.addAttribute("currentPage", "remove-blanks"); return "misc/remove-blanks"; } - + + @GetMapping("/remove-annotations") + @Hidden + public String removeAnnotationsForm(Model model) { + model.addAttribute("currentPage", "remove-annotations"); + return "misc/remove-annotations"; + } @GetMapping("/auto-crop") @Hidden diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 3c1003ea..2148629e 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -255,6 +255,10 @@ home.removeBlanks.title=Remove Blank pages home.removeBlanks.desc=Detects and removes blank pages from a document removeBlanks.tags=cleanup,streamline,non-content,organize +home.removeAnnotations.title=Remove Annotations +home.removeAnnotations.desc=Removes all comments/annotations from a PDF +removeAnnotations.tags=comments,highlight,notes,markup,remove + home.compare.title=Compare home.compare.desc=Compares and shows the differences between 2 PDF Documents compare.tags=differentiate,contrast,changes,analysis @@ -539,6 +543,12 @@ removeBlanks.whitePercentDesc=Percent of page that must be 'white' pixels to be removeBlanks.submit=Remove Blanks +#removeAnnotations +removeAnnotations.title=Remove Annotations +removeAnnotations.header=Remove Annotations +removeAnnotations.submit=Remove + + #compare compare.title=Compare compare.header=Compare PDFs diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 32804afb..1a73c4d4 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -255,6 +255,10 @@ home.removeBlanks.title=Remove Blank pages home.removeBlanks.desc=Detects and removes blank pages from a document removeBlanks.tags=cleanup,streamline,non-content,organize +home.removeAnnotations.title=Remove Annotations +home.removeAnnotations.desc=Removes all comments/annotations from a PDF +removeAnnotations.tags=comments,highlight,notes,markup,remove + home.compare.title=Compare home.compare.desc=Compares and shows the differences between 2 PDF Documents compare.tags=differentiate,contrast,changes,analysis @@ -539,6 +543,12 @@ removeBlanks.whitePercentDesc=Percent of page that must be 'white' pixels to be removeBlanks.submit=Remove Blanks +#removeAnnotations +removeAnnotations.title=Remove Annotations +removeAnnotations.header=Remove Annotations +removeAnnotations.submit=Remove + + #compare compare.title=Compare compare.header=Compare PDFs diff --git a/src/main/resources/static/images/no-chat.svg b/src/main/resources/static/images/no-chat.svg new file mode 100644 index 00000000..8db22038 --- /dev/null +++ b/src/main/resources/static/images/no-chat.svg @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 5b3d83cd..31519548 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -107,7 +107,7 @@
-