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.
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:
./Briefkopf/Briefkopf.pdf
is a fixed name. You should not rename this../Dokumente
is a fixed folder name. It should not be changed. Within this folder all subdirectories and PDFs are processed..PDF
and neccesary subdirectories are automatically created if they do not exist when the program is run. Existing PDFs will be overwritten.
The following is only needed if you are developing...
# 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
python3 main.py