A PyQt5 application for extracting and compressing images from PDF files with automatic optimization.
- Python 3.8 or higher
- Windows 10/11
- Virtual environment (recommended)
- Double-click
build.bator run it from Command Prompt - Wait for the build process to complete
- The executable will be created in
dist\PDFImgExtractorApp.exe
- Right-click
build.ps1and select "Run with PowerShell" - Wait for the build process to complete
- The executable will be created in
dist\PDFImgExtractorApp.exe
- Open Command Prompt or PowerShell in the project directory
- Activate your virtual environment (if using one):
appenv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Build the executable:
pyinstaller build_exe.spec
- Copy the executable: Copy
dist\PDFImgExtractorApp.exeto your desired installation location - Create shortcut: Right-click the executable and select "Create shortcut"
- Pin to Start Menu: Right-click the shortcut and select "Pin to Start"
- Add to Desktop: Copy the shortcut to your desktop for easy access
- Extract images from PDF files with automatic compression
- Support for multiple image formats (WEBP, JPEG, PNG)
- Automatic image optimization to target file size (700KB default)
- Duplicate image detection and removal
- Page rendering fallback when no embedded images found
- Modern PyQt5 interface with frameless window design
- Drag-and-drop window movement
- Automatic output folder creation with PDF name
- Windows 10/11 (64-bit)
- 4GB RAM minimum
- 100MB free disk space
- Select PDF File: Click "Select PDF File" to choose the PDF you want to extract images from
- Select Output Folder: Click "Select Output Folder" to choose where to save the extracted images
- Start Extraction: Click "Start Cooking" to begin the extraction process
- Results: Images will be saved in a folder named
{PDF_NAME}_extractimagesin your selected output directory
- "Windows protected your PC" message: Click "More info" then "Run anyway"
- Missing DLL errors: Ensure you have the latest Visual C++ Redistributable installed
- Antivirus warnings: Add the executable to your antivirus exclusion list
- PyInstaller not found: Run
pip install pyinstaller - Missing dependencies: Run
pip install -r requirements.txt - Permission errors: Run Command Prompt as Administrator
PDFImgExtractorApp/
├── main.py # Main application file
├── build_exe.spec # PyInstaller configuration
├── requirements.txt # Python dependencies
├── build.bat # Windows batch build script
├── build.ps1 # PowerShell build script
├── static/ # Static assets
│ ├── cover.png # Application cover image
│ └── favicon.ico # Application icon
└── src/ # Source code modules
├── assets/ # Core functionality modules
│ └── extract_pdf_images.py # PDF image extraction logic
└── uiitems/ # UI components
├── close_button.py
├── custom_alert.py
├── dash_line.py
├── preview_box.py
├── text_box.py
└── notification_bar.py
- PyQt5 - GUI framework
- PyMuPDF (fitz) - PDF processing
- Pillow (PIL) - Image processing and optimization
- pathlib - Path handling
- hashlib - Duplicate detection
For issues or questions, please check the troubleshooting section above or create an issue in the project repository.