$ show torakiki/pdfsam
PDFsam Basic is a mature, open-source JavaFX desktop application for splitting, merging, rotating, extracting, and mixing PDF files. It is built as a multi-module Maven project using JPMS modules, with the Sejda SDK as the PDF processing engine, EventStudio for event-driven communication, and a custom dependency injection framework. The application provides a rich GUI with tool panels, workspace persistence, preferences, theming, internationalization, update/news services, and premium tool integration. This is purely an application repository; there are no data research or analytics components.
The LLM identified 5 files worth highlighting for reuse:
Provides composable validator factory methods (nonBlank, positiveInteger, regexMatching, existingFileType, etc.) returning Validator<String> functional interfaces. Self-contained and easily extracted into any Java project needing declarative, chainable input validation.
Parses plain-text/CSV lists of PDF file paths, handling quoted fields, commas, and non-UTF8 charsets. Reusable for any batch file-list ingestion task and demonstrates careful edge-case handling for real-world input.
A bounded observable list that evicts oldest elements when capacity is reached, used for log message buffering. Self-contained and reusable for any UI or streaming scenario needing a capped in-memory list with change notification.
Generic CRUD repository persisting entities as JSON in Java Preferences, backed by a typed Repository<T> interface. Reusable pattern for lightweight local persistence without introducing a database dependency.
Wraps an AtomicReference with listener notification, providing thread-safe observable state. Self-contained and reusable for state management in JavaFX or other reactive contexts.