A user-friendly Python GUI application for inserting, replacing, and manipulating pages between PDF documents with automatic page resizing.
- Smart Page Insertion: Insert pages from one PDF into specific positions of another
- Automatic Page Resizing: Pages are automatically resized to match the target PDF
- Multiple Modes:
- Replace existing pages
- Insert before/after specific positions
- Append at the end
- Preview Functionality: See exactly what will happen before merging
- Intelligent Page Parsing: Supports complex page ranges (1-5,7,9-12)
- User-Friendly GUI: Built with PyQt5 for professional interface
- Python 3.8 or higher
- pip package manager
pip install PyQt5 PyMuPDFRun the Application
python pdf_inserter.py- Select PDFs:
-
Main PDF (base document)
-
Source PDF (pages to insert)
- Define Insertion Rules:
-
Specify which pages from Source PDF
-
Define positions in Main PDF
-
Choose insertion mode
- Preview & Merge:
-
Preview the result
-
Merge with one click
-
Auto-open the result
-
Replace specific pages in contracts/reports
-
Insert updated charts into existing documents
-
Combine chapters from different sources
-
Fix/update pages without recreating entire PDFs
-
Built With: Python, PyQt5, PyMuPDF
-
Architecture: MVC-like pattern with clean separation
-
Features:
-
Automatic page size matching
-
Aspect ratio preservation
-
Progress tracking
-
Error handling
-
- Contributions are welcome! Please feel free to submit a Pull Request.

