Major performance improvements and UX enhancements: PERFORMANCE FIXES: - Add merged document caching in FileContext to prevent re-processing on view switches - Implement hash-based cache fallback for File object identity preservation - Add pagination for large documents (>200 pages) to prevent DOM overload - Convert synchronous operations to async chunked processing - Optimize effect dependencies to prevent unnecessary re-renders - Remove aggressive cleanup on view switches that destroyed caches UI/UX IMPROVEMENTS: - Add immediate visual feedback with loading spinners in view switching buttons - Implement skeleton loaders for smooth transitions during processing - Add progress indicators with real-time percentages - Defer heavy operations using requestAnimationFrame to allow UI updates - Create reusable SkeletonLoader component for consistent loading states CACHE SYSTEM: - Move processed file cache management to FileContext for persistence - Add stable cache key generation based on file combinations - Implement smart cache invalidation only when files are actually removed - Preserve thumbnails and page data across view switches BUG FIXES: - Fix infinite loop errors caused by circular hook dependencies - Resolve File object recreation breaking Map lookups - Fix thumbnail loading issues in PageEditor - Prevent UI thread blocking during PDF merging operations TECHNICAL DEBT: - Centralize memory management in FileContext - Add proper cleanup for removed files while preserving active caches - Implement async/await patterns for better error handling - Add performance debugging with console timing Result: PageEditor now loads instantly when returning to cached files, large documents render smoothly with pagination, and view switching provides immediate feedback even during heavy operations. |
||
---|---|---|
.devcontainer | ||
.github | ||
.vscode | ||
docs | ||
exampleYmlFiles | ||
frontend | ||
gradle/wrapper | ||
images | ||
pipeline/defaultWebUIConfigs | ||
scripts | ||
src | ||
testing | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitattributes | ||
.gitignore | ||
.pre-commit-config.yaml | ||
allowed-licenses.json | ||
build.gradle | ||
CLAUDE.md | ||
CONTRIBUTING.md | ||
DATABASE.md | ||
DeveloperGuide.md | ||
Dockerfile | ||
Dockerfile.dev | ||
Dockerfile.fat | ||
Dockerfile.ultra-lite | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
HowToAddNewLanguage.md | ||
HowToUseOCR.md | ||
lauch4jConfig.xml | ||
README.md | ||
SECURITY.md | ||
settings.gradle | ||
USERS.md |
Stirling-PDF
Stirling-PDF is a robust, locally hosted web-based PDF manipulation tool using Docker. It enables you to carry out various operations on PDF files, including splitting, merging, converting, reorganizing, adding images, rotating, compressing, and more. This locally hosted web application has evolved to encompass a comprehensive set of features, addressing all your PDF requirements.
All files and PDFs exist either exclusively on the client side, reside in server memory only during task execution, or temporarily reside in a file solely for the execution of the task. Any file downloaded by the user will have been deleted from the server by that point.
Homepage: https://stirlingpdf.com
All documentation available at https://docs.stirlingpdf.com/
Features
- 50+ PDF Operations
- Parallel file processing and downloads
- Dark mode support
- Custom download options
- Custom 'Pipelines' to run multiple features in a automated queue
- API for integration with external scripts
- Optional Login and Authentication support (see here for documentation)
- Database Backup and Import (see here for documentation)
- Enterprise features like SSO see here
PDF Features
Page Operations
- View and modify PDFs - View multi-page PDFs with custom viewing, sorting, and searching. Plus, on-page edit features like annotating, drawing, and adding text and images. (Using PDF.js with Joxit and Liberation fonts)
- Full interactive GUI for merging/splitting/rotating/moving PDFs and their pages
- Merge multiple PDFs into a single resultant file
- Split PDFs into multiple files at specified page numbers or extract all pages as individual files
- Reorganize PDF pages into different orders
- Rotate PDFs in 90-degree increments
- Remove pages
- Multi-page layout (format PDFs into a multi-paged page)
- Scale page contents size by set percentage
- Adjust contrast
- Crop PDF
- Auto-split PDF (with physically scanned page dividers)
- Extract page(s)
- Convert PDF to a single page
- Overlay PDFs on top of each other
- PDF to a single page
- Split PDF by sections
Conversion Operations
- Convert PDFs to and from images
- Convert any common file to PDF (using LibreOffice)
- Convert PDF to Word/PowerPoint/others (using LibreOffice)
- Convert HTML to PDF
- Convert PDF to XML
- Convert PDF to CSV
- URL to PDF
- Markdown to PDF
Security & Permissions
- Add and remove passwords
- Change/set PDF permissions
- Add watermark(s)
- Certify/sign PDFs
- Sanitize PDFs
- Auto-redact text
Other Operations
- Add/generate/write signatures
- Split by Size or PDF
- Repair PDFs
- Detect and remove blank pages
- Compare two PDFs and show differences in text
- Add images to PDFs
- Compress PDFs to decrease their filesize (using qpdf)
- Extract images from PDF
- Remove images from PDF
- Extract images from scans
- Remove annotations
- Add page numbers
- Auto-rename files by detecting PDF header text
- OCR on PDF (using Tesseract OCR)
- PDF/A conversion (using LibreOffice)
- Edit metadata
- Flatten PDFs
- Get all information on a PDF to view or export as JSON
- Show/detect embedded JavaScript
📖 Get Started
Visit our comprehensive documentation at docs.stirlingpdf.com for:
- Installation guides for all platforms
- Configuration options
- Feature documentation
- API reference
- Security setup
- Enterprise features
Supported Languages
Stirling-PDF currently supports 40 languages!
Stirling PDF Enterprise
Stirling PDF offers an Enterprise edition of its software. This is the same great software but with added features, support and comforts. Check out our Enterprise docs
🤝 Looking to contribute?
Join our community: