Python PyPDF2 — Merge PDF files

Scriptopia
Jan 20, 2023

Python script that will merge the contents of two PDF files and save it as a new file. To do this we use PyPDF2 which is a Python library that enables users to perform various operations on PDF documents.

In this example the contents of ‘file1.pdf’ will come first within our merged file. Also be sure to subscribe to our YouTube channel for daily coding content.

--

--

Scriptopia

Programming - Projects - Source Code available for everything - Scriptopia.co.uk