How to Solve NameError: name 'pikepdf' is not defined

Solution: Import the 'pikepdf' module

# Add the following line to the top of your code
import pikepdf

 

For more information:
Python pikepdf