Git Product home page Git Product logo

combine_pdf's Introduction

Extract and merge PDF pages (combine_pdfs)

GitHub last commit

GitHub repo size

Project: Combining select pages from some PDFs.

Combine all the PDFs on working directory /archivos_pdfs into a single PDF on parent folder

Technology used

This project was build with the use of:

  • Python v3.11.4

Installation

Create a Python virtual environment

OS X & Linux:

$ python -m venv ./venv
$ source ./venv/bin/activate
$ pip install --upgrade pip
$ pip3 install -r requirements.txt
(venv) $

Windows:

$ python -m venv venv
$ .\venv\Scripts\activate
$ pip3 install -r requirements.txt
(venv) $

Windows 10 with Git bash terminal:

$ python -m venv venv
$ source ./venv/Scripts/activate
$ pip3 install -r requirements.txt
(venv) $

Windows 10 with powershell terminal:

PS> python -m venv venv
PS> .\.venv\Scripts\Activate.ps1
PS> pip3 install -r requirements.txt
(.venv) PS>

This prompt may vary if you use another shell configuration, like pk10 or git bash

Later, to deactivate the virtual environment OS X & Linux & Windows:

(venv) $ deactivate
$

Run the project

Before run this project, be sure this folder exist:

  • archivos_pdfs/

Copy some PDF files on this folder

Then, you can execute the program:

python combine_pdfs.py

Example

python combine_pdfs.py

Output files

  • ./PDF_combinado.pdf, PDF file with the merge document from all the extracted pages

Contributing to this repo

  1. Fork it (https://github.com/FernandoTorresL/combine_pdfs/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Follow me

fertorresmx.dev

๐ŸŒ Twitter, Instagram: @fertorresmx

combine_pdf's People

Contributors

fernandotorresl avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.