How to append PDF pages using PyPDF2

后端 未结 5 866
灰色年华
灰色年华 2020-12-16 19:03

Is anybody has experience merging two page of PDF file into one using python lib PyPDF2. When I try page1.mergePage(page2) it results with page2 overlayed page1

5条回答
  •  不知归路
    2020-12-16 19:44

    The pdfrw library can do this. There is a 4up example in the examples directory that places 4 input pages on every output page, and a booklet example that takes 8.5x11 input and creates 11x17 output. Disclaimer -- I am the pdfrw author.

提交回复
热议问题