For anyone facing the same challenge... The Adobe crop tool always centers the printout for me, so I slightly modified a python script based on this answer: https://unix.stackexchange.com/a/373287
import copy, sys
from PyPDF2 import PdfFileWriter, PdfFileReader
input = PdfFileReader(open(sys.argv[1], 'rb'))
output = PdfFileWriter()
for p in [input.getPage(i) for i in range(0, input.getNumPages())]:
(w, h) = p.mediaBox.upperLeft
p.mediaBox.lowerLeft = (w, h/2)
output.addPage(p)
output.write(open(sys.argv[1][:-4] + '_halved.pdf', 'wb'))
This script takes a PDF as input, crops the top part and saves it as a new PDF in the same folder. You need to install python as well as PyPDF2 (pip install PyPDF2
).
I use it quite often to cut DHL parcel labels in half to A5, so I can print it on A4 sheets with 2 self-adhesive A5 labels on it without wasting the second label. To simplify this a bit more, I added the script to the context menu using these instructions: Add menu item to windows context menu only for specific filetype
So I can now download the parcel label, right click -> CropTop -> print the new PDF.