I am trying to install pdftotext on windows via pip install pdftotext. I am getting the following error:
pdftotext.cpp(3): fatal error C1083: Cannot open include file: 'poppler/cpp/poppler-document.h': No such file or directory.
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
I've done the following:
- Visual Studio 2022 C++ Build Tools are installed.
- I've downloaded Poppler and unzipped it.
- I've created system environment variables POPPLER_PATH (to point to where I unzipped the files), POPPLER_LIBRARY_PATH (where the .dlls are, e.g. Library\bin), POPPLER_INCLUDE_PATH (Library\include folder).
- I've added Poppler's
binfolder to the PATH environment variable - I've installed
pip install poppler-utils(another question on SO recommended it) - I've checked the bitness of everything - it's all 64 bits.
Nothing has worked so far. What am I missing?
P.S. Here is the entire output of the command if it helps.