UB-Mannheim / zotero-ocr

Zotero Plugin for OCR
GNU Affero General Public License v3.0
552 stars 40 forks source link

Zotero OCR Fails with Linked Attachments #43

Open dstark opened 2 years ago

dstark commented 2 years ago

When I run Zotero OCR with PDFs inside the Zotero storage folder, things go as expected. When instead Zotero has only a link to a PDF stored elsewhere, the OCR fails to finish.

OCR run on a linked PDF can create

Just looking at the behavior on the screen (which may or may not be transparent to what's happening under the hood), it looks like pdftoppm.exe fails to launch when the OCR process is attempted on a linked PDF.

If Zotero OCR could

  1. handle linked PDFs the same as it does stored PDFs, that would be ideal, or
  2. produce an error when OCR is attempted on a linked PDF that would ask the user to make the linked PDF a stored PDF in order to proceed with the conversion, that would be helpful.

Thanks so much for considering this request!


Zotero 6.0.9 Zotero OCR 0.6.0 Poppler 22.04 Tesseract 5.2.0.20220712 (64-bit)

aborel commented 7 months ago

I have tried to reproduce this using Zotero OCR 0.7.0, and it seems to work correctly. Can anybody confirm?