Package: ocrmypdf
Version: 13.7.0+dfsg-1
Followup-For: Bug #1023273

I also see that ocrmypdf does not work correctly with ghostscript 10.0.  From
the github page, it became clear that this little patch works around the
problem, so you ocrmypdf can be used after applying the patch as is.

This is of course only a stop gap solution but until newer ocrmypdf versions
arise it may help people looking for a way to quickly make ocrmypdf work again.

Best wishes
  Detlev


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ocrmypdf depends on:
ii  ghostscript                 10.0.0~dfsg-6
ii  icc-profiles-free           2.0.1+dfsg-1.1
ii  python3                     3.10.6-1
ii  python3-coloredlogs         15.0.1-1
ii  python3-img2pdf             0.4.4-3
ii  python3-importlib-metadata  4.12.0-1
ii  python3-packaging           21.3-1.1
ii  python3-pdfminer            20220319+dfsg-1
ii  python3-pikepdf             6.0.0+dfsg-1
ii  python3-pil                 9.2.0-1.1+b1
ii  python3-pkg-resources       65.5.0-1
ii  python3-pluggy              1.0.0+repack-1
ii  python3-reportlab           3.6.11-1
ii  python3-tqdm                4.64.0-2
ii  python3-typing-extensions   4.3.0-2
ii  tesseract-ocr               5.1.0-2+b1
ii  zlib1g                      1:1.2.11.dfsg-4.1

Versions of packages ocrmypdf recommends:
ii  pngquant  2.13.1-1
ii  unpaper   7.0.0-0.1

Versions of packages ocrmypdf suggests:
pn  img2pdf          <none>
pn  ocrmypdf-doc     <none>
pn  python-watchdog  <none>

-- no debconf information
--- /usr/lib/python3/dist-packages/ocrmypdf/_exec/ghostscript.py.ORIG   
2022-11-15 15:44:52.999056901 +0100
+++ /usr/lib/python3/dist-packages/ocrmypdf/_exec/ghostscript.py        
2022-11-15 15:51:05.349598489 +0100
@@ -229,7 +229,7 @@
             "-dCompatibilityLevel=" + str(pdf_version),
             "-sDEVICE=pdfwrite",
             "-dAutoRotatePages=/None",
-            "-sColorConversionStrategy=" + strategy,
+            "-dColorConversionStrategy=" + strategy,
         ]
         + compression_args
         + [

Reply via email to