LeoFCardoso / pdf2pdfocr

A free tool to OCR a PDF and add a text "layer" in the original file, making a searchable PDF. Use only open source tools. Please tip!
Apache License 2.0
273 stars 34 forks source link

PyPDF2 moved PdfReadError from utils to errors #35

Closed Cragsand closed 1 year ago

Cragsand commented 2 years ago

Followed the instruction guide for Windows and noticed an error when running the SendTo VBScript "ModuleNotFoundError: No module named 'PyPDF2.utils'"

Looks like the latest version of PyPDF2 moved PdfReadError from utils to errors

Changing line 41 from

from PyPDF2.utils import PdfReadError

to

from PyPDF2.errors import PdfReadError

fixed the problem.

bild

Cheers

LeoFCardoso commented 2 years ago

Thank you. I'll fix the Windows tutorial and check de dependencies.

LeoFCardoso commented 1 year ago

Fixed in https://github.com/LeoFCardoso/pdf2pdfocr/commit/cf759bab9ef7e86a50e539389775d630a09a5e13