How ciwga/pdftoolkit works
Project type and purpose
• PDF Toolkit is a Python-based desktop application offering both a GUI and a CLI for manipulating PDF files (merge, extract pages/images, edit metadata, convert images to PDF).
• It comprises three entrypoints: a GUI (pdftoolkit.py), a CLI (pdftoolkit_cli.py), and a core library module (pdf_ops.py).
File structure
• Top-level files:
• pdftoolkit.py: GUI launcher (Tkinter + drag-and-drop)
• pdftoolkit_cli.py: CLI entrypoint
• pdf_ops.py: Core PDF operations API
• requirements.txt: External dependencies
• No database—uses the local filesystem for reading/writing PDFs, images, JSON metadata.
• External libraries: PyPDF2, pillow, tkinterdnd2.
README
• Confirms architecture: separate GUI and CLI, both drive the same core logic.
• Lists features (metadata, page/image extraction, merging, conversion).
• Technology stack: Python 3.7+, PyPDF2, Pillow, TkinterDND2.
Detail
• Entrypoints and the core module as separate components.