How to install Poppler on Windows

可紊 提交于 2019-11-27 01:36:20

问题


The most recent version of scraperwiki depends on Poppler (or so the github says). Unfortunately it only specifies how to get it on OSX and Linux, not Windows. A quick google turned up nothing too promising so does anyone know how to get Poppler on Windows for scraperwiki?


回答1:


Poppler Windows binaries are available from ftp://ftp.gnome.org/Public/GNOME/binaries/win32/dependencies/ -- but note that those aren't quite up-to-date.

If you're looking for Python (2.7) bindings (as this question's tag suggests), I requested them in the past via this bug report. A couple of people apparently managed to produce something, but I haven't checked those out yet.

As for a more recent (python bindings unrelated) poppler Windows binaries Google result, see http://blog.alivate.com.au/poppler-windows/

Finally, there's the brand-new (and currently very frequently updated) PyGObject all-in-one installer (mainly aiming to provide PyGObject-instrospected Gtk+3 Python bindings etc. for Windows), so if that's what you're looking for, go to http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar




回答2:


Other answers have linked to the correct download page for Windows users but do not specify how to install them for the uninitiated.

  1. Go to this page and download the binary of your choice. In this example we will download and use poppler-0.68.0.

  2. Extract the archive file poppler-0.68.0_x86.7z into C:\Users\Program Files. Thus the directory structure should look something like this:

C: └ Program Files └ poppler-0.68.0 └ bin └ include └ lib └ share

  1. Add C:\Program Files\poppler-0.68.0\bin to your system PATH.

  2. If you are using a terminal to execute poppler (e.g. running pdf2image in command line), you may need to reopen your terminal for poppler to work.

  3. Done!




回答3:


With anaconda installed on windows one can simply execute:

conda install -c conda-forge poppler



回答4:


It looks like a version that is build-able with visual studio can be found here https://bitbucket.org/merarischroeder/poppler-for-windows/overview




回答5:


Latest Poppler Windows binaries can be found here:

http://blog.alivate.com.au/poppler-windows/




回答6:


Another option is that if you have installed MikTeX then poppler is included by default and is probably already in your PATH. In my case the binaries were installed under: C:\Program Files\MiKTeX 2.9\miktex\bin\x64




回答7:


MSYS2 has the latest version available for install.

If you don't want to install the whole enviroment (or you wanted some kind of portable version) you could also just download Poppler straight from the repository, but then you'd also have to manually handle dependencies. Namely: libwinpthread, nspr, gcc-libs, nss, curl, brotli, openssl, libidn2, libiconv, gettext, libunistring, nghttp2, libpsl, libjpeg-turbo, lcms2, openjpeg2, libpng, zlib, libtiff, xz and zstd.




回答8:


You should consider using Windows Subsystem for Linux (WSL).

  1. Enable WSL on Windows 10 (it will not work on S edition)
  2. Install Ubuntu (latest version) on WSL from the Windows Store
  3. Open Ubuntu command-line

In the Ubuntu Command-line, run the following commands:

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt install poppler-utils
  • pdftocairo -v - to check the installed version

You can then run pdftocairo (for example) in two ways:

  1. Within the Ubuntu command-line: pdftocairo ...
  2. Directly from Windows command-line: wsl pdftocairo...

NOTE: There is a default version of poppler for each release of Ubuntu. You will need to look up the instructions (there should be plenty on the internet), for how to install the latest version of poppler-utils on Ubuntu. This might involve quite a few steps, which will compile from the source code. For example, something like this https://askubuntu.com/a/722955. And then you might get a lot of problems.

The latest version of Ubuntu 19.04, can install Poppler 74. But Ubuntu 18.04 seems to be the latest version you can install for WSL for now, and that installs Poppler 62.



来源:https://stackoverflow.com/questions/18381713/how-to-install-poppler-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!