How can you run pypdfocr from within a Python script, as opposed to the command line?
This question How to call pypdfocr functions to use them in a python script? approaches the answer I want, but doesn't quite get there.
import pypdfocr
from pypdfocr import pypdfocr
from pypdfocr.pypdfocr import PyPDFOCR as pocr
filepath = 'C:/myfolder/myPDF.pdf'
newfile = pocr.run_conversion(filepath)
This throws an error:
Unbound method run_conversion must be called with PyPDFOCR instance as first argument.
Can someone help me fill in the (likely obvious) missing piece?