diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js index ca77385eaa..5f50294c53 100644 --- a/chrome/content/zotero/xpcom/recognizePDF.js +++ b/chrome/content/zotero/xpcom/recognizePDF.js @@ -419,6 +419,7 @@ Zotero.RecognizePDF = new function () { if (!filePath || !await OS.File.exists(filePath)) throw new Zotero.Exception.Alert('recognizePDF.fileNotFound'); let json = await extractJSON(filePath, MAX_PAGES); + json.fileName = OS.Path.basename(filePath); let containingTextPages = 0;