1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-05 07:20:12 +01:00
locally hosted web application that allows you to perform various operations on PDF files
Go to file
MarcO-79 9c334fb021
Update navbar.html
Add Polish language
2023-05-17 15:12:37 +02:00
.github Update push-docker.yml 2023-05-13 10:44:22 +01:00
docs Metadata editting and local only JS and pdf to image change and format pages (#44) 2023-02-11 14:27:15 +00:00
gradle/wrapper Add files via upload 2023-01-27 18:23:40 +00:00
images Add files via upload 2023-05-13 17:04:21 +01:00
scripts debugs 2023-05-12 20:55:18 +01:00
src/main Update navbar.html 2023-05-17 15:12:37 +02:00
.gitattributes Update .gitattributes 2023-02-26 21:49:29 +00:00
.gitignore Restyled the sign page and cleaned up code in various places. 2023-05-04 00:07:51 +03:00
build.gradle Version bump 2023-05-14 15:43:56 +01:00
CNAME Create CNAME 2023-04-22 13:19:30 +01:00
Dockerfile Update Dockerfile 2023-05-01 22:31:30 +01:00
DockerfileBase utf8 bug fix and scan pages (#113) 2023-05-01 21:57:48 +01:00
gradlew Add files via upload 2023-01-27 18:23:40 +00:00
gradlew.bat Add files via upload 2023-01-27 18:23:40 +00:00
HowToAddNewLanguage.md update readme 2023-05-12 20:35:17 +01:00
HowToUseOCR.md Added Fedora location & install commands 2023-05-14 20:54:31 +00:00
Jenkinsfile Add files via upload 2023-01-28 10:00:32 +00:00
LICENSE Initial commit 2023-01-27 18:22:43 +00:00
LocalRunGuide.md Merge branch 'main' into patch-4 2023-05-14 22:11:20 +01:00
README.md Version bump 2023-05-14 15:43:56 +01:00
settings.gradle Add files via upload 2023-01-27 18:23:40 +00:00


Stirling-PDF

Docker Pulls Discord Docker Image Version (tag latest semver) GitHub Repo stars Paypal Donate Github Sponser

This is a powerful locally hosted web based PDF manipulation tool using docker that allows you to perform various operations on PDF files, such as splitting merging, converting, reorganizing, adding images, rotating, compressing, and more. This locally hosted web application started as a 100% ChatGPT-made application and has evolved to include a wide range of features to handle all your PDF needs.

Feel free to request any features or bug fixes either in github issues or our Discord

stirling-home

Features

  • Full intractable GUI for merging/splitting/rotating/moving PDFs and their pages.
  • Split PDFs into multiple files at specified page numbers or extract all pages as individual files.
  • Merge multiple PDFs together into a single resultant file
  • Convert PDFs to and from images
  • Reorganize PDF pages into different orders.
  • Add/Generate signatures
  • Flatten PDFs
  • Repair PDFs
  • Detect and remove blank pages
  • Compare 2 PDFs and show differences in text
  • Add images to PDFs
  • Rotating PDFs in 90 degree increments.
  • Compressing PDFs to decrease their filesize. (Using OCRMyPDF)
  • Add and remove passwords
  • Set PDF Permissions
  • Add watermark(s)
  • Convert Any common file to PDF (using LibreOffice)
  • Convert PDF to Word/Powerpoint/Others (using LibreOffice)
  • Extract images from PDF
  • OCR on PDF (Using OCRMyPDF)
  • Edit metadata
  • Dark mode support.
  • Custom download options (see here for example)
  • Parallel file processing and downloads
  • API for integration with external scripts

Hosted instance/demo of the app can be seen here hosted by the team at adminforge.de

Technologies used

  • Spring Boot + Thymeleaf
  • PDFBox
  • LibreOffice for advanced conversions
  • OcrMyPdf
  • HTML, CSS, JavaScript
  • Docker
  • PDF.js
  • PDF-LIB.js

How to use

Locally

Please view https://github.com/Frooodle/Stirling-PDF/blob/main/LocalRunGuide.md

Docker

https://hub.docker.com/r/frooodle/s-pdf

Docker Run

docker run -d \
  -p 8080:8080 \
  -v /location/of/trainingData:/usr/share/tesseract-ocr/4.00/tessdata \
  --name stirling-pdf \
  frooodle/s-pdf
  
  
  Can also add these for customisation but are not required
  -e APP_HOME_NAME="Stirling PDF" \
  -e APP_HOME_DESCRIPTION="Your locally hosted one-stop-shop for all your PDF needs." \
  -e APP_NAVBAR_NAME="Stirling PDF" \
  -e ALLOW_GOOGLE_VISABILITY="true" \
  -e APP_ROOT_PATH="/" \
  -e APP_LOCALE="en_GB" \

Docker Compose

version: '3.3'
services:
  stirling-pdf:
    image: frooodle/s-pdf
    ports:
      - '8080:8080'
    volumes:
      - /location/of/trainingData:/usr/share/tesseract-ocr/4.00/tessdata #Required for extra OCR languages
#      - /location/of/extraConfigs:/configs
#    environment:
#      APP_LOCALE: en_GB
#      APP_HOME_NAME: Stirling PDF
#      APP_HOME_DESCRIPTION: Your locally hosted one-stop-shop for all your PDF needs.
#      APP_NAVBAR_NAME: Stirling PDF
#      APP_ROOT_PATH: /
#      ALLOW_GOOGLE_VISABILITY: true

Enable OCR/Compression feature

Please view https://github.com/Frooodle/Stirling-PDF/blob/main/HowToUseOCR.md

Want to add your own language?

Stirling PDF currently supports

  • English
  • Arabic (العربية)
  • German (Deutsch)
  • French (Français)
  • Spanish (Español)
  • Chinese (简体中文)
  • Catalan (Català)
  • Italian (Italiano)

If you want to add your own language to Stirling-PDF please refer https://github.com/Frooodle/Stirling-PDF/blob/main/HowToAddNewLanguage.md

And please create a PR to merge it back in so others can use it!

Also please note as i add new features i will google translate existing languages so that they dont lose support. This could mean that new features need grammer corrections as added.

How to View

  1. Open a web browser and navigate to http://localhost:8080/
  2. Use the application by following the instructions on the website.

Customize App

Stirling PDF allows easy customization of the visible application name. Simply use environment variables APP_HOME_NAME, APP_HOME_DESCRIPTION and APP_NAVBAR_NAME with Docker or Java. If running Java directly, you can also pass these as properties using -D arguments.

Using the same method you can also change

  • The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR to select your default language (Will always default to English on invalid locale)
  • Enable/Disable search engine visablility with ALLOW_GOOGLE_VISABILITY with true / false values. Default disable visability.
  • Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app

API

For those wanting to use Stirling-PDFs backend API to link with their own custom scripting to edit PDFs you can view all existing API documentation here or navigate to /swagger-ui/index.html of your stirling-pdf instance for your versions documentation