NAS Enthusiasts' Gospel, the Ultimate PDF Processing Tool to Enhance the Value of Your NAS!
1. Introduction
We have all experienced the frustration of dealing with a pile of PDF documents, whether it’s merging several PDFs, splitting a PDF file, rearranging pages in a PDF, or any other PDF-related tasks. Online tools you find either bombard you with ads, require payment, or raise concerns about privacy. If you’re facing these issues, then the self-hosted PDF processing tool, Stirling-PDF, might be the solution you need.
Introducing Stirling-PDF
Stirling-PDF is a powerful locally hosted web-based PDF manipulation tool that runs on Docker. It allows you to perform various operations on PDF files, such as splitting, merging, converting, rearranging, adding images, rotating, compressing, and more. It can handle all your PDF needs.
All files and PDFs exist only on the client side, and any downloaded files are deleted from the server at that time.
You don’t have to worry about this service taking up too much space. It’s the most hassle-free and space-saving PDF assistant you can find.
Key Features:
- Full web GUI for merging/splitting/rotating/moving PDFs and their pages.
- Splitting PDF into multiple files
- Merging multiple PDFs into one
- Converting PDF to images and vice versa
- Fixing PDFs
- Detecting and removing blank pages
- Comparing two PDFs and displaying text differences
- Adding images to PDFs
- Rotating PDFs in 90-degree increments
- Compressing PDFs to reduce file size
- Adding and removing passwords
- Adding watermarks
- Converting any common file to PDF
- Converting PDF to Word/Powerpoint/other formats
- Extracting images from PDFs
- Performing OCR on PDFs
Alright, enough talk. Let’s move on to the specific setup steps:
1. Key Point
Click to follow for free
and never get lost.
2. Install Portainer
Tutorial reference: Install Portainer, a Must-Have Tool for NAS, in 30 Seconds
3. File Station
Open File Station and create a stirling-pdf
folder in the docker folder.
4. Create Stack
5. Deploy the Code
|
|
- Select stack.
- Enter
stirling-pdf
in the name field. - Enter the above code in the editor.
- Click on deploy.
6. Success
7. Usage
Access the program in your browser: [ip]:[port]
Replace
[ip]
with the IP address of your NAS (mine is 172.16.23.106 here), and[port]
with the port defined in the configuration file. If you followed my tutorial, it would be 13260.
8. Chinese Support for OCR
Stirling-PDF has a very powerful OCR function.
By applying OCR to the images in the PDF, the text can be extracted, just like this:
By default, OCR uses the English character library. If we want to support Chinese, we need to download the Chinese training package ourselves:
Download link:
stirling-pdf-traindata: Access code: xztp
There are two training packages available:
- normal (larger, more comprehensive, slower recognition speed)
- fast (smaller, more streamlined, faster recognition speed)
- Place the training files in the following location:
Finally
By building your own Stirling-PDF, you can not only process PDFs anytime and anywhere, but also ensure that your data is always under your control and not accessible to unnecessary third parties.
If you like this article, please remember to like, bookmark, and follow “Dad’s Digital Garden”. We will continue to bring more practical self-built application guides. Together, let’s take control of our own data and create our own digital world!
If you encounter any problems during the setup process or have any suggestions, please feel free to leave a comment below for discussion and learning.
如果你觉得这篇文章对你有所帮助,欢迎赞赏~
Sponsor