From aa79741e8ec6b07104cd29a7b1a50b710a4d5805 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:27:17 +0000 Subject: [PATCH 1/8] README.md(#13) * Update README.md * Update README.md --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f3b2c46f..4ca4f2b7 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ I will support and fix/add things to this if there is a demand [Discord](https:/ ## Technologies used - Spring Boot + Thymeleaf - PDFBox +- e-iceblue spire.pdf.free (for PDF compression untill i find a nicer way) - HTML, CSS, JavaScript - Docker @@ -29,20 +30,29 @@ I will support and fix/add things to this if there is a demand [Discord](https:/ Prerequisites - Java 17 or later -- Gradle 6.0 or later +- Gradle 7.0 or later 1. Clone or download the repository. 2. Build the project using Gradle by running `./gradlew build` -3. Start the application by running `./gradlew bootRun` +3. Start the application by running `./gradlew bootRun` or by calling the build jar in build/libs with java -jar jarName.jar ### Docker https://hub.docker.com/r/frooodle/s-pdf -docker pull frooodle/s-pdf - +Docker Run +``` docker run -p 8080:8080 frooodle/s-pdf - +``` +Docker Compose +``` +version: '3.3' +services: + s-pdf: + ports: + - '8080:8080' + image: frooodle/s-pdf +``` ## How to View 1. Open a web browser and navigate to `http://localhost:8080/` From d1949d8eb4433da0e280645fa52a7df5be57e232 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:39:17 +0000 Subject: [PATCH 2/8] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4ca4f2b7..324cd9ef 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ I will support and fix/add things to this if there is a demand [Discord](https:/ - Convert PDFs to and from images - Reorganize PDF pages into different orders. - Add images to PDFs at specified locations. +- Rotating PDFs in 90 degree increments. +- Compressing PDFs to decrease their filesize. - Dark mode support. ## Technologies used From 6f981e1a29b206cdc56d19398b1e6b5ab003c82a Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:46:28 +0000 Subject: [PATCH 3/8] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 324cd9ef..76c710b4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Stirling-PDF (Made in 1 day with 100% ChatGPT, Even this readme!) +# Stirling-PDF This is a locally hosted web application that allows you to perform various operations on PDF files, such as splitting and adding images. +Started off as a 100% ChatGPT made application, slowly moving away from that as more features are added I will support and fix/add things to this if there is a demand [Discord](https://discord.gg/Cn8pWhQRxZ) From 852fff588d3021f402ba96cc9d239c0e47b1434a Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:46:38 +0000 Subject: [PATCH 4/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 76c710b4..dac4bcae 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Stirling-PDF This is a locally hosted web application that allows you to perform various operations on PDF files, such as splitting and adding images. + Started off as a 100% ChatGPT made application, slowly moving away from that as more features are added I will support and fix/add things to this if there is a demand [Discord](https://discord.gg/Cn8pWhQRxZ) From af2fa55d9b9b406645a36ba6fc13b75bcbedfa46 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 31 Jan 2023 11:17:07 +0000 Subject: [PATCH 5/8] Create .gitignore --- .gitignore | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c8a31d91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,109 @@ + + +### Eclipse ### +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + + +# Gradle +.gradle +.lock + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ +.apt_generated_test/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +# Uncomment this line if you wish to ignore the project description file. +# Typically, this file would be tracked if it contains build/dependency configurations: +#.project + +### Eclipse Patch ### +# Spring Boot Tooling +.sts4-cache/ + +### Git ### +# Created by git for backups. To disable backups in Git: +# $ git config --global mergetool.keepBackup false +*.orig + +# Created by git when using merge tools for conflicts +*.BACKUP.* +*.BASE.* +*.LOCAL.* +*.REMOTE.* +*_BACKUP_*.txt +*_BASE_*.txt +*_LOCAL_*.txt +*_REMOTE_*.txt + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar From 35e2e743d9701afecf1bd42ccff6cc6bdbdf7554 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:23:52 +0000 Subject: [PATCH 6/8] Create FUNDING.yml --- .github/FUNDING.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..2e9be9a1 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,13 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry +custom: ['https://paypal.me/froodleplex?country.x=GB&locale.x=en_GB'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] From 072053f794c0950e3895b82a50f77e604ea7828a Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 31 Jan 2023 14:13:02 +0000 Subject: [PATCH 7/8] Proxy test (#16) * Update build.gradle * Update application.properties --- build.gradle | 2 +- src/main/resources/application.properties | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f658f516..c4b21d34 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'stirling.software' -version = '0.2.1' +version = '0.2.2' sourceCompatibility = '17' repositories { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f679f0dc..d49c5abd 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,4 +6,6 @@ multipart.max-file-size=1000MB multipart.max-request-size=1000MB spring.servlet.multipart.max-file-size=1000MB -spring.servlet.multipart.max-request-size=1000MB \ No newline at end of file +spring.servlet.multipart.max-request-size=1000MB + +server.forward-headers-strategy=NATIVE From 523503a1006371648d1dcd434bdfcca79a7da071 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Tue, 31 Jan 2023 16:53:10 +0000 Subject: [PATCH 8/8] Proxy test (#17) * Add files via upload * Add files via upload --- src/main/resources/templates/add-image.html | 2 +- src/main/resources/templates/compress-pdf.html | 2 +- src/main/resources/templates/convert-pdf.html | 4 ++-- src/main/resources/templates/home.html | 14 +++++++------- src/main/resources/templates/merge-pdfs.html | 2 +- src/main/resources/templates/navbar.html | 16 ++++++++-------- src/main/resources/templates/pdf-organizer.html | 2 +- src/main/resources/templates/rotate-pdf.html | 2 +- src/main/resources/templates/split-pdfs.html | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/resources/templates/add-image.html b/src/main/resources/templates/add-image.html index 80a2f64d..f0c81be0 100644 --- a/src/main/resources/templates/add-image.html +++ b/src/main/resources/templates/add-image.html @@ -17,7 +17,7 @@ -