Python PyPDF2 — Write PDF metadata

Python script that will write metadata to a PDF file, to do this we will be using the PDF reader from the PyPDF2 library. The PyPDF2 is a Python library that enables users to perform various operations on PDF documents.

In this example we are adding an ‘Author’ and ‘Title’ to the metadata of our PDF file. Be sure to subscribe to our YouTube channel for daily coding content.

--

--

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store