From 1a9329d1dfc19c2e2a082a8a0dffec5a6e7dee35 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Wed, 17 May 2023 17:59:28 +0100 Subject: [PATCH] other endpoints --- groups.md | 32 +++++++++++++++ groups2.md | 12 ++++++ .../SPDF/config/EndpointConfiguration.java | 23 ++++++++++- .../resources/templates/fragments/navbar.html | 41 ++++++++++--------- 4 files changed, 86 insertions(+), 22 deletions(-) create mode 100644 groups.md create mode 100644 groups2.md diff --git a/groups.md b/groups.md new file mode 100644 index 00000000..9feb2e27 --- /dev/null +++ b/groups.md @@ -0,0 +1,32 @@ +Operation | PageOps | Convert | Security | Other | CLI | Python | OpenCV | LibreOffice | OCRmyPDF | Java | Javascript +--------------------|---------|---------|----------|-------|------|--------|--------|-------------|--------- |-------- |----------- +remove-pages | X | | | | | | | | | X | +merge-pdfs | X | | | | | | | | | X | +split-pdfs | X | | | | | | | | | X | +pdf-organizer | X | | | | | | | | | X | X +rotate-pdf | X | | | | | | | | | X | +pdf-to-img | | X | | | | | | | | X | +img-to-pdf | | X | | | | | | | | X | +pdf-to-pdfa | | X | | | X | | | | X | | +file-to-pdf | | X | | | X | | | X | | | +xlsx-to-pdf | | X | | | X | | | X | | | +pdf-to-word | | X | | | X | | | X | | | +pdf-to-presentation | | X | | | X | | | X | | | +pdf-to-text | | X | | | X | | | X | | | +pdf-to-html | | X | | | X | | | X | | | +pdf-to-xml | | X | | | X | | | X | | | +add-password | | | X | | | | | | | X | +remove-password | | | X | | | | | | | X | +change-permissions | | | X | | | | | | | X | +add-watermark | | | X | | | | | | | X | +ocr-pdf | | | | X | X | | | | X | | +add-image | | | | X | | | | | | X | +compress-pdf | | | | X | X | | | | X +extract-images | | | | X | | | | | | X | +change-metadata | | | | X | | | | | | X | +extract-image-scans | | | | X | X | X | X | | | | +sign | | | | X | | | | | | | X +flatten | | | | X | | | | | | | +repair | | | | X | X | | | X | | | +remove-blanks | | | | X | X | X | X | | | | +compare | | | | X | | | | | | | X diff --git a/groups2.md b/groups2.md new file mode 100644 index 00000000..1f83f183 --- /dev/null +++ b/groups2.md @@ -0,0 +1,12 @@ +X | remove-pages | merge-pdfs | split-pdfs | pdf-organizer | rotate-pdf | pdf-to-img | img-to-pdf | pdf-to-pdfa | file-to-pdf | xlsx-to-pdf | pdf-to-word | pdf-to-presentation | pdf-to-text | pdf-to-html | pdf-to-xml | add-password | remove-password | change-permissions | add-watermark | ocr-pdf | add-image | compress-pdf | extract-images | change-metadata | extract-image-scans | sign | flatten | repair | remove-blanks | compare +-------------------|--------------|------------|------------|---------------|------------|------------|------------|-------------|-------------|-------------|-------------|---------------------|-------------|-------------|-------------|--------------|-----------------|-------------------|--------------|--------|-----------|--------------|---------------|----------------|-------------------|-----|---------|--------|--------------|-------- +PageOps | X | X | X | X | X | | | | | | | | | | | | | | | | | | | | | | | | | +Convert | | | | | | X | X | X | X | X | X | X | X | X | X | | | | | | | | | | | | | | | +Security | | | | | | | | | | | | | | | | X | X | X | X | | | | | | | | | | | +Other | | | | | | | | | | | | | | | | | | | | X | X | X | X | X | X | X | X | X | X | X +CLI | | | | | | | | X | X | X | X | X | X | X | X | | | | | X | | X | | | X | +OpenCV | | | | | | | | | | | | | | | | | | | | | | | | | X | +LibreOffice | | | | | | | | | X | X | X | X | X | X | X | | | | | | | | | | | +OCRmyPDF | | | | | | | | X | | | | | | | | | | | | X | | X | | | | +Java | X | X | X | X | X | X | X | | | | | | | | | X | X | X | X | | X | | X | X | | +Javascript | | | | X | | | | | | | | | | | | | | | | | | | | | | X | | | | X diff --git a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java index b0aa3ed6..b2a372e5 100644 --- a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java +++ b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java @@ -141,8 +141,27 @@ public class EndpointConfiguration { addEndpointToGroup("OCRmyPDF", "compress-pdf"); addEndpointToGroup("OCRmyPDF", "pdf-to-pdfa"); - disableEndpoint("remove-pages"); - disableEndpoint("compress-pdf"); + //Java + addEndpointToGroup("Java", "merge-pdfs"); + addEndpointToGroup("Java", "remove-pages"); + addEndpointToGroup("Java", "split-pdfs"); + addEndpointToGroup("Java", "pdf-organizer"); + addEndpointToGroup("Java", "rotate-pdf"); + addEndpointToGroup("Java", "pdf-to-img"); + addEndpointToGroup("Java", "img-to-pdf"); + addEndpointToGroup("Java", "add-password"); + addEndpointToGroup("Java", "remove-password"); + addEndpointToGroup("Java", "change-permissions"); + addEndpointToGroup("Java", "add-watermark"); + addEndpointToGroup("Java", "add-image"); + addEndpointToGroup("Java", "extract-images"); + addEndpointToGroup("Java", "change-metadata"); + + + //Javascript + addEndpointToGroup("Javascript", "pdf-organizer"); + addEndpointToGroup("Javascript", "sign"); + addEndpointToGroup("Javascript", "compare"); } private void processEnvironmentConfigs() { diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index ae524d79..6c2b7b70 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -247,38 +247,39 @@ function compareVersions(version1, version2) { +