https://github.com/gaborvecsei/pdf-split-merge
simple pdf file split and merge tool
https://github.com/gaborvecsei/pdf-split-merge
pdf pdf-document pypdf2 python python3
Last synced: 7 months ago
JSON representation
simple pdf file split and merge tool
- Host: GitHub
- URL: https://github.com/gaborvecsei/pdf-split-merge
- Owner: gaborvecsei
- Created: 2018-12-31T10:57:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T12:46:58.000Z (almost 7 years ago)
- Last Synced: 2025-03-17T19:21:23.474Z (7 months ago)
- Topics: pdf, pdf-document, pypdf2, python, python3
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 43
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDFSM - Pdf Split & Merge
Simple tool to split and merge multiple pdf files
> I wanted to quickly select pages from pdf files and merge them into a single document but I did not find any
usable tool...So I made one in a few minutes :smiley:## Install
```
pip3 install git+https://github.com/gaborvecsei/pdf-split-merge.git
```## Usage
Write a config file like this (`sample_config.txt`):
```
D:/my_folder/my_pdf_1.pdf 1-10,16,22
D:/my_folder/my_pdf_23.pdf 1-40
D:/my_folder/my_pdf_4.pdf 6,8,9-20```
This means it will process the files sequentially top-down and include only the defined
pages in the final pdf document.```
pdfsm -i sample_config.txt -o split_and_merge.pdf
```You can use different file encoding:
```
pdfsm -i sample_config.txt -o split_and_merge.pdf -e utf8
```## About
Gábor Vecsei
- [Website](https://gaborvecsei.com)
- [Personal Blog](https://gaborvecsei.wordpress.com/)
- [LinkedIn](https://www.linkedin.com/in/gaborvecsei)
- [Twitter](https://twitter.com/GAwesomeBE)
- [Github](https://github.com/gaborvecsei)