Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luc-ass/pdf-overlay

Merge content-pdf onto stationary-pdf
https://github.com/luc-ass/pdf-overlay

document merge pdf python3

Last synced: 15 days ago
JSON representation

Merge content-pdf onto stationary-pdf

Awesome Lists containing this project

README

        

# ๐Ÿ“‘ pdf-overlay
This small tool merges a stationary pdf ontop of the first page of a content-pdf. It has been built to combine content files with a letterhead. This enables you to update the letterhead of files much faster.

## Usage
### โš™๏ธ Installation
On Windows systems download the pdf-overlay.exe into a folder. The folder structure should now look something like this:
```
working_dir/
โ”œโ”€โ”€ Briefkopf/
โ”‚ โ””โ”€โ”€ Briefkopf.pdf
โ”œโ”€โ”€ Dokumente/
โ”‚ โ”œโ”€โ”€ Input_PDF_1.pdf
โ”‚ โ””โ”€โ”€ Input_PDF_2.pdf
โ”œโ”€โ”€ PDF/
โ””โ”€โ”€ pdf-overlay.exe
```
Things you need to know:
1. `./Briefkopf/Briefkopf.pdf` is a fixed name. You should not rename this.
2. `./Dokumente` is a fixed folder name. It should not be changed. Within this folder all subdirectories and PDFs are processed.
3. `.PDF` and neccesary subdirectories are automatically created if they do not exist when the program is run. Existing PDFs will be overwritten.
### ๐Ÿงช DEV
The following is only needed if you are developing...

```sh
# Only needed on Apple/arm_64 architecture as pymupdf does not have a corresponding wheel and will build using swig
brew install swig

# install (and build) PyMuPDF
pip3 install pymupdf
```
### Edit configuration within main.py
### Run Script
`python3 main.py`