PyPdf: split each page in two, pad with blank space
问题 I have a PDF file (A4, portrait layout), each page of which I want to split in a half of height. The output document should also be A4 and portrait layout, but lower half of each page needs to be blank. I saw https://stackoverflow.com/a/15743413/822789 but did not understand how to add blank space with mediaBox. 回答1: I don't really know PyPDF2 all that well, but I am the author of pdfrw and if I understand your question, pdfrw can certainly do what you want quite easily. I need to document it