Skip to content

CJFData/PDFMerger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ PDF Merger with Page Selection

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.

✨ Features

  • 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
  • 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

πŸš€ Demo

https://pdfmerger-cjfdata.streamlit.app/

πŸ“‹ Requirements

  • Python 3.7+
  • Streamlit
  • PyPDF2
  • PyMuPDF (fitz)
  • Pillow

πŸ› οΈ Installation

Local Installation

  1. Clone this repository:
git clone https://github.com/CJFData/PDFMerger.git
cd PDFMerger
  1. Install the required packages:
pip install -r requirements.txt
  1. Run the app:
streamlit run pdf_merger_app.py
  1. Open your browser and navigate to http://localhost:8501

Jupyter Notebook

If you prefer to run this from a Jupyter notebook, see the included notebook cells in the documentation.

πŸ“– Usage

  1. Upload PDFs: Click the upload button and select one or more PDF files
  2. Preview: View the first page of each uploaded PDF
  3. Select Pages: Specify which pages to include from each PDF
    • Default: All pages (e.g., 1-5 for a 5-page document)
    • Custom: Enter your selection (e.g., 1,3,5 or 2-4,7)
  4. Remove (Optional): Remove any PDFs you don't want to include
  5. Merge: Click the "Merge PDFs" button
  6. Download: Download your merged PDF file

🎨 Example Use Cases

  • 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

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

πŸ“ License

This project is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0) - see the LICENSE file for details.

πŸ‘ Credits

Created with assistance from Claude (Anthropic)

πŸ“§ Contact

Christian J Ferreira - data@christianjferreira.com

Project Link: https://github.com/CJFData/PDFMerger


⭐ If you found this helpful, please consider giving it a star!

About

Simple tool to merge PDFs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages