1

After installing pikepdf, while trying code with pikepdf, I am getting error messages as below :

enter image description here

M Z
  • 4,571
  • 2
  • 13
  • 27
  • Please visit [How to Ask](https://www.stackoverflow.com/help/how-to-ask). It is recommended to paste code and error messages as text over embedding an image – M Z Jan 12 '21 at 06:19

2 Answers2

0

You can restart your kernel of your notebook and install pikepdf

!pip install pikepdf

Then you should import it by

from pikepdf import pdf

and so on.

You should install your dependencies first then run the code.

0
  1. It's Pdf, not pdf. Use:
from pikepdf import Pdf
  1. Using from pikepdf import ... does not actually import pikepdf itself. Run this to load it:
import pikepdf
  1. It's Pdf.open() not pikepdf.open()

It seems best for you to review the docs for pikepdf.

M Z
  • 4,571
  • 2
  • 13
  • 27