How to install Poppler on Windows? - windows

The most recent version of ScraperWiki depends on Poppler (or so the GitHub says). Unfortunately, it only specifies how to get it on macOS and Linux, not Windows.
A quick googling turned up nothing too promising. Does anyone know how to get Poppler on Windows for ScraperWiki?

Other answers have linked to the correct download page for Windows users but do not specify how to install them for the uninitiated.
Go to this page and download the binary of your choice. In this example we will download and use poppler-0.68.0_x86.
Extract the archive file poppler-0.68.0_x86.7z into C:\Program Files. Thus, the directory structure should look something like this:
C:
└ Program Files
└ poppler-0.68.0_x86
└ bin
└ include
└ lib
└ share
Add C:\Program Files\poppler-0.68.0_x86\bin to your system PATH by doing the following: Click on the Windows start button, search for Edit the system environment variables, click on Environment Variables..., under System variables, look for and double-click on PATH, click on New, then add C:\Users\Program Files\poppler-0.68.0_x86\bin, click OK.
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.
Done!

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

Download Poppler Packaged for Windows
https://github.com/oschwartz10612/poppler-windows/releases
I threw together a quick repo with the latest Poppler prebuilt-binaries packaged with dependencies for Windows. Built with the help of conda-forge and poppler-feedstock. Includes the latest poppler-data.

With anaconda installed on windows one can simply execute:
conda install -c conda-forge poppler

UPDATE 2
See the answer by Owen Schwartz.
UPDATE 1
Rumpel Stielzchen's comment:
This site is no longer maintained. Poppler version 0.68 is very
outdated today. You find the latest version compiled also for Windows
here: https://anaconda.org/conda-forge/poppler/files Sadly there is no
32 bit version, only 64 bit
… but this package contains no dependencies:
It seems that the Anaconda people have a tool to download a package
and all dependencies. And there is a file in the TAR package:
index.json which lists the package on which it depends. I downloaded
the dependencies one by one, and yes: It WAS a pain.
Original answer
Latest Poppler Windows binaries can be found here:
http://blog.alivate.com.au/poppler-windows/

Chocolatey
Poppler is available as Chocolatey package:
choco install poppler
By default Poppler is installed in C:\ProgramData\chocolatey\lib\poppler and shims are automatically created for the following tools: pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext, pdfunite.
To update Poppler, run:
cup poppler
Scoop
Install from the main bucket:
scoop install poppler
By default Poppler is installed in ~\scoop\apps\poppler and shims are automatically created for the following tools: pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext, pdfunite.
To update Poppler, run:
scoop update poppler
TeX Live
As mentioned in another answer, MiKTeX currently ships with Poppler tools, and so does another LaTeX distribution, TeX Live.
From the guide:
Command-line tools.
A number of Windows ports of common Unix command-line programs are installed along with the usual TeX Live binaries. These include gzip, zip, unzip, and the utilities from the poppler suite (pdfinfo, pdffonts, …)
Poppler suite is located by default in C:\texlive\<year>\bin\win32 and, if you can compile your LaTeX documents, should work out of the box since this location is added to the PATH by the installer.

To Simply install Poppler on Windows run through the below mentioned steps without touching the environmental varible.
Download the Latest Poppler Binary from the URL: http://blog.alivate.com.au/poppler-windows/index.html
Unzip it and copy the poppler-0.68.0_x86 folder in some path for ex, C:/User/Poppler/poppler-0.68.0_x86/poppler-0.68.0/bin
Now go to your Python code where you want to call Poppler for image conversion and use the below mentioned code snippet:
from pdf2image import convert_from_path
pages = convert_from_path('MyPdf.pdf', 500, poppler_path = r'C:\User\Poppler\poppler-0.68.0_x86\poppler-0.68.0\bin')
for page in pages:
page.save('out.jpg', 'JPEG')

You should consider using Windows Subsystem for Linux (WSL).
Enable WSL on Windows 10 (it will not work on S edition)
Install Ubuntu (latest version) on WSL from the Windows Store
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:
Within the Ubuntu command-line: pdftocairo ...
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.

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

Up to date binaries for Windows x64, Mac OSX-64, Linux-64bit can be found here
https://anaconda.org/conda-forge/poppler/files
Poppler version 0.84 is available at the link as of this writing which is very current.
The accepted answer and the link given by Alexey are no longer pointing to current versions of poppler
Update :
As of March 8, 2021 the best answer is by Owen Schwarz above https://stackoverflow.com/a/62615998/590388

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

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.

Install the Microsoft Visual C++ Build Tools
Install poppler through the Conda prompt conda:
conda install -c conda-forge poppler
please note: if you don't have anaconda installed, it can be downloaded from here,
https://docs.anaconda.com/anaconda/install/windows/

Installing Poppler on Windows
Go to https://github.com/oschwartz10612/poppler-windows/releases/
Under Release 21.11.0-0 Latest v21.11.0-0
Go to Assets 3 Download
Release-21.11.0-0.zip
Adding Poppler to path
Add Poppler installed to loaction : C:\Users\UserName\Downloads\Release-21.11.0-0.zip
Add C:\Users\UserName\Downloads\Release-21.11.0-0.zip to system variable path in Environment Variable

This is what I did.
Install msys2
Open msys2 shell and then run:
To List available packages named poppler
pacman -Ss poppler
To Install the package
pacman -S mingw-w64-ucrt-x86_64-poppler
Open MSYS2 UCRT64 Shell and access poppler binaries
The binaries are installed at:
C:\msys64\ucrt64\bin

Related

Is there an OpenSSL for windows?

I'm trying to generate OpenSSL certificates on Windows OS. But I find most of the commands related to OpenSSL are for *nix OS.
Is there an OpenSSL for Windows OS? If yes, from where can I get it? Is this official OpenSSL build for Windows?
Search openssl shining light production in google and download from the first link
Yes. You can do one of two things:
1) Build it yourself
You'll need a build environment (either Visual Studio or msys2 based), and a few other pre-requisites. Download the source from here:
https://www.openssl.org/source/
And (assuming you downloaded the 1.1.0 version), read the INSTALL notes here:
https://github.com/openssl/openssl/blob/OpenSSL_1_1_0-stable/INSTALL
There are also some Windows specific notes here:
https://github.com/openssl/openssl/blob/OpenSSL_1_1_0-stable/NOTES.WIN
2) Download a pre-compiled version
The OpenSSL project doesn't distribute pre-compiled binaries, but they do maintain a list of third-party provided binaries. The list is here:
https://wiki.openssl.org/index.php/Binaries
If you're using Chocolatey, you can also install with
choco install openssl
More details in here and for me it also installed some other stuff, like VC Redist:
Installed:
- kb2919355 v1.0.20160915
- kb3033929 v1.0.5
- kb2999226 v1.0.20181019
- openssl v1.1.1.1900
- vcredist2015 v14.0.24215.20170201
- kb2919442 v1.0.20160915
- vcredist140 v14.34.31931
- kb3035131 v1.0.3
- chocolatey-windowsupdate.extension v1.0.5
Packages requiring reboot:
- vcredist140 (exit code 3010)
This was done on Windows 10.
Both Cygwin and MSYS distribute pre-compiled openssl binaries, which I use everyday.
If you don't like a *nix like style, please refer this official page for standalone distrbutions.
https://wiki.openssl.org/index.php/Binaries
Disclaim: I have not tested the software listed on the page.
I am using this version https://slproweb.com/products/Win32OpenSSL.html and install it with
Essentials
winget install -e ShiningLight.OpenSSL.Light
Full
winget install -e ShiningLight.OpenSSL

Which one I should download? "Download the latest version of libclang"

I want to install YouCompleteMe, on Mac OSX, early 2015.
I have installed it under guidance of Mac OSX part. However, I got one warning:
NoExtraConfDetected: No .ycm_extra_conf.py file detected.
Then I read the full installation guide, and know that I should Download the latest version of libclang. However, there are so many source code on the official webpage of LLVM, and I don't know what to install (figure below).
So, could you please tell me, which one I should install?
Thanks!
If you go to http://llvm.org/releases/download.html#3.8.0 you can see Pre-Build binaries for MacOsX that's what you need to download and extract. Once you extract this. You will need to source it's location using the path variable.
Now, You can also install clang using brew from the terminal.
brew install --with-clang llvm

git-cola will not run on windows

I have installed git-cola using the setup installer for windows. I pointed it to proper installs of git and python.
When I try to launch git-cola, nothing happens whatsoever.
Is there something I am missing here?
I had the same problem, in my case it was missing PyQt4 library. You can install PyQt4 by downloading an appropriate installer from Binary Packages section on PyQt4 Riverbank website.
How I investigated the issue
When I installed git-cola in a default directory and tried to run it using a command line
C:\Program Files (x86)\git-cola\bin>python git-cola.pyw
I got
Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.: sudo apt-get install python-qt4
Note
I have two Python 2.7 installations, one at c:\program\Python27 and another at C:\Users\UserName\Anaconda2, I used the first one. I also installed Python SIP some time ago, I'm not sure if it required by git-cola.

How to get "WebKit for GTK+3 1.3.7" headers for ubuntu?

i'm trying to compile pidgin on ubuntu (mint 17, actually).
./configure says:
"You must have WebKit for GTK+3 1.3.7 or newer development headers"
but which ubuntu package contains this version?
i have several packages named "webkit" or "gtk", and i tried to locate and install other versions, but couldn't find it.
i downloaded the pidgin and webkit sources, but i don't know how to connect them.
(the pidgin support registration seems offline -> hence, here.)
I have a Debian system but perhaps you can do the same :)
First, see what you get with this command on a terminal:
aptitude search webkit |grep gtk
It will shows you all the packages you can install (or already installed) on your system, linking webkit and gtk.
Then you select the package you need : libwebkitgtk-3.0-dev in your case (on Debian)
Hope this helped, See you !
I don't know if this helps but checkout WebKitGTK+. Also this can help, do you have run
$ Tools/gtk/install-dependencies
or the other commands listed on the page?

Exe's compilation on Solaris 11 env using gcc

I am on Solaris 11 environment and gcc-3.4.6 is installed on it. The problem is that I am not able to compile exe's there, The error is
-sh: gcc: gcc: cannot execute [Invalid argument]
even if I write gcc only it gives the same error. Kindly help.
Unlike in Solaris 10, on Solaris 11 the GCC is not installed by default.
Fear not.
By far the easiest is to use IPS to install it using the commands below (while being root or other superuser):
pkg install pkg://solaris/developer/build/gnu-make
pkg install pkg://solaris/developer/build/make
pkg install pkg://solaris/developer/gcc-45
pkg install pkg://solaris/system/header
pkg install pkg://solaris/developer/build/autoconf
pkg install pkg://solaris/developer/build/automake-110
This will give you all the tools you typically need to build various open source software packages.
Note that some of the packages have a version number in the package name itself, e.g. gcc-45. You may be able to find even later versions in the package repository, for example for Solaris 11.2 Beta you'll find you have a choice of GCC 4.5, 4.7 or 4.8. The same applies to automake which is now also available in v1.11.
(recipe from my posting here)

Resources