How to append PDF pages using PyPDF2

后端 未结 5 857
灰色年华
灰色年华 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 code posted in this following link accomplished your objective.

    Using PyPDF2 to merge files into multiple output files

    I believe the trick is:

    merger.append(input)

提交回复
热议问题