Skip to content

[Bug]: OCRmyPDF Crashes on Files Pre-Processed in K2pdfopt #1545

@MarjaE2

Description

@MarjaE2

What were you trying to do?

I often use K2pdfopt to fix scanned pdfs, so that older devices can render them, and newer ones can render them in minutes instead of hours.

It has its own ocr options, but to try to avoid crashes, I would run k2pdfopt to fix the pdf, and then ocrmypdf on the output to create readable text.

But for the past few months, this tends to result in crashes.

  1. take any pdf file
  2. run k2pdfop, with -ui -mode copy -o %s_k2opt_copy
  3. run ocrmypdf on the output, with --force-ocr if needed

Where are you installing/running from?

Homebrew

OCRmyPDF version

16.10.2

What operating system are you working on?

macOS

Operating system details and version

MacOS Sequoia 15.5

Simple sanity checks

  • Operating system is currently supported by its vendor (not end of life)
  • Python version is compatible with OCRmyPDF
  • This issue is not about a specific input file

Relevant log output

Loading font Helvetica (or substitute) from                                     
/usr/local/Cellar/ghostscript/10.05.1/share/ghostscript/Resou                   
rce/Font/NimbusSans-Regular                                                     
Loading font Helvetica (or substitute) from                                     
/usr/local/Cellar/ghostscript/10.05.1/share/ghostscript/Resou                   
rce/Font/NimbusSans-Regular                                                     
Error: /undefinedresult in --runpdf--

Metadata

Metadata

Assignees

Labels

triageIssue needs triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions