repobenchmarks // document privacy
DEVELOPER TOOLS
$ docker compose up -d stirling-pdf

Stirling-PDF Local Suite

Self-hosted, browser-based Swiss Army knife for PDF manipulation with OCR, page extraction, and zero external tracking.

Engine: Java Spring + PDFBox OCR: Tesseract Engine Privacy: 100% In-Memory / Local
50+ PDF Operations In-Browser Merge/Split OCR Text Sanitize Redact ✓ Zero bytes leave your server

Uploading sensitive legal contracts, tax documents, and financial statements to random free "PDF converter" websites is a massive security and privacy liability. Most online PDF tools upload your documents to third-party cloud servers where they can be retained or inspected. Stirling-PDF is a fully open-source, self-hosted web application that provides over 50 powerful PDF manipulation tools running entirely on your own local Docker server.

Stirling-PDF Container Architecture Diagram showing client browser session communicating with Spring Boot core and underlying CLI processing engines. Client Browser Port 8080 HTTPS Session Stirling-PDF Core Spring Boot & Web UI REST API & Swagger In-Memory Pipeline (Zero Leaks) Apache PDFBox Merge, Split, Rotate Tesseract OCR Searchable Text Extraction LibreOffice Engine DOCX / XLSX to PDF
Figure 1: Internal processing architecture showing coordination between Spring Boot web layer and specialized native CLI utilities.

Key Features of the Stirling-PDF Suite

  • Document Organization: Merge multi-part PDFs, split documents by page numbers or bookmarks, reorder pages visually, and rotate orientations.
  • OCR Text Recognition: Powered by Tesseract OCR, convert scanned image PDFs into fully searchable, selectable PDF documents in dozens of languages.
  • Security & Redaction: Add digital signatures, decrypt password-protected files, sanitize metadata, and black out sensitive data permanently.
  • Full REST API: Every tool available in the web UI is also exposed as an automated REST API endpoint, allowing developers to automate PDF generation inside scripts.

Stirling-PDF Container Flavor Matrix

Container Tag Included Tooling Image Size Recommended Environment
latest (Standard) PDFBox, basic OCR, image conversion ~1.2 GB Standard homelabs & VPS servers
latest-fat Full LibreOffice, OpenCV, advanced OCR ~2.5 GB Workspaces needing Word/Excel to PDF conversion
ultra-lite Minimal Java PDFBox utilities only ~350 MB Low-spec VPS (1GB RAM) with simple merge/split needs

Docker Compose Deployment

docker-compose.yml
services:
  stirling-pdf:
    image: frooodle/s-pdf:latest
    container_name: stirling-pdf
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      - DOCKER_ENABLE_SECURITY=false
      - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
    volumes:
      - ./trainingData:/usr/share/tessdata
      - ./extraConfigs:/configs
▶ Authentication & Multi-User Hardening
  • Enable Security in Multi-User Environments: If exposing Stirling-PDF outside your private LAN, set DOCKER_ENABLE_SECURITY=true in your environment variables to enable login authentication and role-based permissions.
  • In-Memory Processing: Stirling-PDF processes files in-memory and deletes temporary artifacts immediately upon session completion, ensuring zero residual document traces on the host filesystem.

Conclusion

Stirling-PDF replaces untrusted cloud conversion sites with a self-hosted, private solution that gives developers and businesses complete control over their sensitive documents.

// Primary Sources & Documentation
Editorial Note: Configuration instructions reflect verified upstream parameters for Stirling-PDF v0.30+.