Skip to content

Instantly share code, notes, and snippets.

View dreua's full-sized avatar

David Auer dreua

View GitHub Profile
@dreua
dreua / merge_pdfs.py
Last active April 28, 2023 01:30 — forked from Geekfish/merge_pdfs.py
pyPDF2 merge 2 pdf pages into one
#!/bin/python3
from PyPDF2 import PdfFileReader, PdfFileWriter
from PyPDF2 import PageObject
# Theses files are just for testing, no point in merging these
reader = PdfFileReader(open("Nextcloud Manual.pdf",'rb'))
# this defines the output page format (relevant if not the same)