I’ve written before about replacing Acrobat on Linux. The desktop editors handle the daily work. But there’s a pile of jobs that aren’t daily and aren’t pretty: merging a hundred exhibits, compressing a file so the court’s portal will take it, redacting, converting a Word file back and forth, running OCR on a bad scan. So I put a PDF toolbox on the network and open it in a browser. It’s called Stirling PDF.
Why bother
Two reasons, and one is confidentiality.
Free online PDF tools are everywhere. They’re also somebody else’s server, and a PDF of a sealed record or a client’s medical file is exactly what you shouldn’t upload to a site whose business model you haven’t read. A self-hosted tool keeps the file inside my network. Stirling also doesn’t keep what you process — files are handled in the session and not stored, which is how its developers designed it, and which I confirmed before building anything.
The other reason is that one server beats a dozen installed tools. Every device in the office gets the same toolbox through a browser tab, with nothing to install or update on the laptops.
What it covers next to Acrobat
On my instance the list includes merge, split, compress, convert (to and from Word and other formats), OCR, redact, and sign. That’s most of what I used Acrobat Pro for, and the Pro-only items I called out in the earlier post — OCR and redaction — are both here.
Two caveats. I haven’t run a head-to-head quality comparison, so I won’t claim the output matches Acrobat’s on every file. And redaction on anything that matters gets checked by hand: open the result, try to select and search the “redacted” text, and make sure it’s gone.
Three of Stirling’s functions are switched off on my install: PDF to CBR (comic-book archives), PDF to EPUB, and URL to PDF. The first two need extra software I didn’t want to carry. URL to PDF needs a headless browser, and Stirling itself flags that feature as risky on a server reachable from the internet. Mine isn’t, but I still didn’t need it enough to bother.
The install: a Java file and systemd
Stirling’s docs lead with Docker. I’m running it in a Proxmox container, and I didn’t want a container inside a container. So I went native: a Java archive (JAR) run by systemd as an unprivileged user. Fewer layers, and the app’s small bit of state sits in the container’s own filesystem, which my nightly backups already cover.
I hit three snags, and each is the kind of thing the docs don’t make obvious.
The .deb is the wrong download. The Linux installer on Stirling’s site is the desktop app. It installed fine, then turned out to pull in a GUI toolkit and ship no service file. I purged it.
The release has three JARs that look alike. One is API-only with no web interface — I loaded it and got a “backend-only mode” page. One has the interface but doesn’t contain the login system at all. Only the third, with “login” in the filename, includes accounts. Flipping the login setting on the plain JAR did nothing; the log showed requests for a login endpoint that simply doesn’t exist in that build. I only found this out because the desktop client refused to connect to a server with no authentication. Lesson: when a real client gives you an error, believe it over a doc summary that hedges.
It needs a newer Java than Debian 13’s default. The app failed with an UnsupportedClassVersionError. Debian 13’s default Java 21 was too old, but Java 25 is in the regular repository, so no backports were needed.
The service file is short. Here’s the generic shape:
# /etc/systemd/system/stirling-pdf.service (key lines)
[Service]
User=stirling
Environment="STIRLING_BASE_PATH=/opt/stirling-pdf"
ExecStart=/usr/bin/java -Dserver.port=8080 -jar /opt/stirling-pdf/Stirling-PDF-with-login.jar
Restart=on-failure
Run it as a dedicated unprivileged user, point the base path at the directory that should hold settings and logs, and let systemd restart it if it dies. One gotcha: an Environment= line with a space in the value needs the whole assignment quoted. Without quotes, systemd silently dropped my line.
The conversion and OCR features also depend on ordinary packages — LibreOffice, Tesseract, OCRmyPDF, Ghostscript, and a few others. Missing ones don’t error loudly; they just disable features. The journal tells you which:
journalctl -u stirling-pdf.service | grep 'Disabled endpoints'
I installed packages until that list shrank to the three above.
The hang
At one point the app went unresponsive. The Java process was alive and the port was listening, but nothing answered. A thread dump showed worker threads blocked on the same lock inside Spring Boot’s JAR loader, which matches open Spring Boot issues on Java 25 with virtual threads. I turned virtual threads off with a single flag, -Dspring.threads.virtual.enabled=false, and restarted. It then handled a batch of concurrent requests without trouble. I haven’t re-verified that fix after the v3 upgrade below, so I’m still watching it.
Updating from v2 to v3
Updating is the upside of a plain JAR. Download the new file (the same “with login” variant — pin the filename), keep the old one as a backup, replace it, fix ownership, and restart. I snapshot the container first.
# keep the old build for rollback, then swap in the new one
mv Stirling-PDF-with-login.jar Stirling-PDF-with-login.jar.prev
# (download the new JAR here), then:
chown stirling:stirling Stirling-PDF-with-login.jar
systemctl restart stirling-pdf.service
I went from 2.14.3 to 3.0.0 this way. It started in 38 seconds and the web interface answered normally. Rollback is moving the .prev file back and restarting.
What I didn’t check: whether my custom branding survived, or whether the virtual-threads fix still matters under v3. One custom branding file I removed on purpose, because it had to be rebuilt by hand on every upgrade, and I knew I’d forget.