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.