A simple and intuitive Streamlit web app that allows you to merge multiple PDF files with the ability to select specific pages or page ranges from each document.
- Multiple PDF Upload: Upload multiple PDF files at once
- Live Preview: See a preview of the first page of each uploaded PDF
- Flexible Page Selection: Choose specific pages or ranges using simple syntax
- Single pages:
1,3,5 - Ranges:
1-5 - Combined:
1-3,7,9-12
- Single pages:
- Easy Management: Remove individual PDFs before merging
- One-Click Download: Download your merged PDF with a single click
- Clean Interface: User-friendly design with clear instructions
https://pdfmerger-cjfdata.streamlit.app/
- Python 3.7+
- Streamlit
- PyPDF2
- PyMuPDF (fitz)
- Pillow
- Clone this repository:
git clone https://github.com/CJFData/PDFMerger.git
cd PDFMerger- Install the required packages:
pip install -r requirements.txt- Run the app:
streamlit run pdf_merger_app.py- Open your browser and navigate to
http://localhost:8501
If you prefer to run this from a Jupyter notebook, see the included notebook cells in the documentation.
- Upload PDFs: Click the upload button and select one or more PDF files
- Preview: View the first page of each uploaded PDF
- Select Pages: Specify which pages to include from each PDF
- Default: All pages (e.g.,
1-5for a 5-page document) - Custom: Enter your selection (e.g.,
1,3,5or2-4,7)
- Default: All pages (e.g.,
- Remove (Optional): Remove any PDFs you don't want to include
- Merge: Click the "Merge PDFs" button
- Download: Download your merged PDF file
- Combine chapters from different documents
- Extract and merge specific pages from multiple reports
- Create a custom document from various sources
- Merge selected pages from scanned documents
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0) - see the LICENSE file for details.
Created with assistance from Claude (Anthropic)
Christian J Ferreira - data@christianjferreira.com
Project Link: https://github.com/CJFData/PDFMerger
β If you found this helpful, please consider giving it a star!