Both sides previous revisionPrevious revisionNext revision | Previous revision |
pdf_fulltext_indexing [2015/04/08 03:46] – [Manual Installation] dstillman | pdf_fulltext_indexing [2018/04/29 19:11] (current) – dstillman |
---|
====== PDF Full-Text Indexing ====== | ====== PDF Full-Text Indexing ====== |
| |
Zotero uses the pdfinfo and pdftotext utilities from the open-source [[http://www.foolabs.com/xpdf/|Xpdf]] project for [[searching#fulltext_pdf_indexing|PDF indexing]]. | Zotero uses tools from the [[https://www.xpdfreader.com/|Xpdf project]] to extract full-text content from PDFs for searching. Since Zotero 5.0.36, the PDF tools are bundled with Zotero and do not need to be downloaded separately as in previous versions. |
| |
If installation via the [[preferences/search|Search tab]] of the [[preferences|Zotero preferences]] window fails, the easiest solution is to install the tools from another computer running the same OS and copy the pdfinfo* and pdftotext* files over from the [[zotero_data|Zotero data directory]] on that computer. (On OS X and Linux, be sure to preserve the executable bit on the executables and script files.) | |
| |
===== Manual Installation ===== | |
| |
If you wish to build the Xpdf tools manually or use preinstalled system versions (e.g., from the Poppler fork), you must create a number of files in your [[zotero_data|Zotero data directory]]: | |
| |
- The different executables can be placed directly in the data directory or linked to from there. Either way, platform-specific files must be created, conforming to the format ''pdfinfo-{platform}'' and ''pdftotext-{platform}'', where ''{platform}'' is "Win32", "MacIntel", "Linux-i686", etc. To determine your current platform, open the Firefox Web Console and enter ''navigator.platform.replace(' ', '-')''. The Windows executables require the .exe extension (e.g., ''pdftotext-Win32.exe''). | |
- One or two scripts are required for proper functioning of the PDF tools within Zotero. On Windows systems, [[https://raw.githubusercontent.com/zotero/zotero/4.0/resource/redirect.vbs|redirect.vbs]] should be saved as ''pdfinfo.vbs'' and [[https://raw.githubusercontent.com/zotero/zotero/4.0/resource/hide.vbs|hide.vbs]] should be saved as ''pdftotext.vbs''. On OS X and Linux, [[https://raw.githubusercontent.com/zotero/zotero/4.0/resource/redirect.sh|redirect.sh]] should be saved as ''pdfinfo.sh'', with the executable bit set. | |
- Text files containing the installed version number should be created with filenames in the format ''{executable-name}.version'' (e.g., ''pdftotext-MacIntel.version''). | |