Skip to content

About

Сортировщик PDF накладных по фильтрам для Kaspi-магазинов

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

🗂️ PDF Powerhouse: Sort, Split, Merge, and More!

This project is a comprehensive PDF processing tool designed to simplify common PDF-related tasks. It provides a user-friendly GUI built with Tkinter and ttkbootstrap, allowing users to effortlessly crop, split, merge, and even perform OCR on their PDF documents. The application also features a robust license validation system to ensure authorized usage. It solves the problem of needing multiple tools for different PDF tasks by consolidating them into a single, easy-to-use application.

🚀 Key Features

  • ✂️ PDF Cropping: Precisely crop PDF pages to remove unwanted margins or content.
  • 🔪 PDF Splitting: Divide a single PDF into multiple files based on page ranges.
  • ➕ PDF Merging: Combine multiple PDF files into a single document.
  • 👓 OCR (Optical Character Recognition): Extract text from scanned PDF pages, making them searchable and editable.
  • 🔑 License Validation: Secure the application with a license key system, preventing unauthorized use.
  • ✨ User-Friendly GUI: Intuitive graphical interface built with Tkinter and ttkbootstrap for a seamless user experience.
  • ⚙️ Configuration Settings: Customize application behavior through configurable settings.
  • 🧵 Threading Support: Perform long-running tasks in the background to prevent GUI freezing.

🛠️ Tech Stack

  • Frontend:
    • tkinter: Standard Python GUI library.
    • ttkbootstrap: Themed widgets for Tkinter, providing a modern look and feel.
  • Backend:
    • Python: The core programming language.
  • PDF Processing:
    • pdfplumber: Extract text and other information from PDF files.
    • PyPDF2: Manipulate PDF files (merging, splitting, cropping).
  • OCR:
    • PIL (Pillow): Image processing library (implicitly used by pdfplumber for OCR).
    • Tesseract OCR: OCR engine (must be installed separately).
  • License Validation:
    • hashlib: Calculate SHA256 hash for license key generation and validation.
    • uuid: Generate a unique identifier for machine code generation.
  • Utilities:
    • os: Operating system interactions (file paths, etc.).
    • re: Regular expressions for text processing.
    • platform: Operating system information.
    • threading: Multithreading for background tasks.
    • logging: Application logging.
    • copy: Object copying.
    • collections.Counter: Counting item occurrences.
    • zipfile: Handling ZIP archives.
    • tempfile: Creating temporary files and directories.
    • shutil: High-level file operations.
    • math: Mathematical operations.
  • Build Tools:
    • pyinstaller (likely): For creating executable files.

📦 Getting Started

Prerequisites

  • Python 3.x installed
  • Tesseract OCR engine installed and added to your system's PATH (required for OCR functionality)

Installation

  1. Clone the repository:

    git clone <repository_url>
    cd <repository_directory>
  2. Create a virtual environment (recommended):

    python3 -m venv venv
    source venv/bin/activate  # On Linux/macOS
    venv\Scripts\activate  # On Windows
  3. Install the required packages:

    pip install -r requirements.txt

Running Locally

  1. Run the main application script:
    python main.py

📂 Project Structure

├── main.py           # Main application logic and GUI
├── keygen.py         # License key generation script
├── requirements.txt  # Project dependencies
├── LICENSE           # License information
├── README.md         # Project documentation (this file)
└── ...               # Other supporting files (e.g., UI assets, configuration files)

📸 Screenshots

(Space reserved for screenshots of the application's GUI)

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive messages.
  4. Submit a pull request.

📝 License

This project is licensed under the [License Name] License - see the LICENSE file for details.

📬 Contact

If you have any questions or suggestions, please feel free to contact me at [Your Email Address].

💖 Thanks Message

Thank you for checking out this project! I hope it's helpful.

This is written by readme.ai - https://readme-generator-phi.vercel.app/

About

Сортировщик PDF накладных по фильтрам для Kaspi-магазинов

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages