Skip to content

Commit

Permalink
Clarify error hOCR output error message
Browse files Browse the repository at this point in the history
Closes #10
  • Loading branch information
jbarlow83 committed Aug 30, 2024
1 parent a9916e5 commit 67d71a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocrmypdf_easyocr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def get_deskew(input_file, options) -> float:

@staticmethod
def generate_hocr(input_file, output_hocr, output_text, options):
raise NotImplementedError("EasyOCR does not support hOCR output")
raise NotImplementedError(
"EasyOCR does not support hOCR output yet -- use --pdf-renderer=sandwich for now."
)

@staticmethod
def generate_pdf(input_file, output_pdf, output_text, options):
Expand Down

0 comments on commit 67d71a0

Please sign in to comment.