first you have to intsall python3 in your machine. Then import two python libaries 1.import subprocess pip3 intsall subprocess
The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions:
import PyPDF2 pip3 install pdPDf2
A Pure-Python library built as a PDF toolkit. It is capable of:
extracting document information (title, author, …) splitting documents page by page merging documents page by page cropping pages merging multiple pages into a single page encrypting and decrypting PDF files and more!