+
+
# How to add new languages to Stirling-PDF
diff --git a/README.md b/README.md
index 96729959d..5da8586bd 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
-
tirling-PDF
+
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.
@@ -34,7 +35,7 @@ I will support and fix/add things to this if there is a demand [Discord](https:/
## How to use
-### Locally
+### Locally
Prerequisites
- Java 17 or later
diff --git a/src/main/java/stirling/software/SPDF/controller/RotationController.java b/src/main/java/stirling/software/SPDF/controller/RotationController.java
index 42676f6dc..436dc4842 100644
--- a/src/main/java/stirling/software/SPDF/controller/RotationController.java
+++ b/src/main/java/stirling/software/SPDF/controller/RotationController.java
@@ -37,7 +37,7 @@ public class RotationController {
@PostMapping("/rotate-pdf")
public ResponseEntity rotatePDF(@RequestParam("fileInput") MultipartFile pdfFile,
- @RequestParam("angle") String angle) throws IOException {
+ @RequestParam("angle") Integer angle) throws IOException {
// Load the PDF document
PDDocument document = PDDocument.load(pdfFile.getBytes());
@@ -50,7 +50,7 @@ public class RotationController {
while (iterPage.hasNext()) {
PDPage page = iterPage.next();
- page.setRotation(Integer.valueOf(angle));
+ page.setRotation(page.getRotation() + angle);
}
return PdfUtils.pdfDocToWebResponse(document, pdfFile.getName() + "_rotated.pdf");
diff --git a/src/main/resources/templates/fragments/common.html b/src/main/resources/templates/fragments/common.html
index d8abe2426..4340d5e85 100644
--- a/src/main/resources/templates/fragments/common.html
+++ b/src/main/resources/templates/fragments/common.html
@@ -6,6 +6,9 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/rotate-pdf.html b/src/main/resources/templates/rotate-pdf.html
index daa0e799b..fb68049b8 100644
--- a/src/main/resources/templates/rotate-pdf.html
+++ b/src/main/resources/templates/rotate-pdf.html
@@ -15,27 +15,32 @@