Poppler是一个基于xpdf-3.0代码库的PDF渲染库。我已经从官方网站http://poppler.freedesktop.org/下载了tar.xz文件,但我不知道如何处理该文件
是否有要安装或运行的命令?
附注:我是Linux的新手,所以我还不太了解它。
Poppler是一个基于xpdf-3.0代码库的PDF渲染库。我已经从官方网站http://poppler.freedesktop.org/下载了tar.xz文件,但我不知道如何处理该文件
是否有要安装或运行的命令?
附注:我是Linux的新手,所以我还不太了解它。
4条答案
按热度按时间ltqd579y1#
Not sure how it worked in 15.04, but I know in 16.04 (Xenial), the package's official name is
poppler-utils
:http://packages.ubuntu.com/xenial/poppler-utils
And thus can be installed with:
The marked answer by codefreak is not correct if you need the poppler-command-line tools, such as
pdftotext
. Also, installing Python poppler via apt-get doesn't seem to play nice if you're on a customized system, e.g. one that is running off of the Anaconda distribution.lh80um4z2#
What you downloaded from poppler site is source code and you may not be expert enough to install it yourself. For such situations, Ubuntu and other linux distros manage packages of popular software so you don't have to go through manual installation via source code. In your case, poppler for python is available in package
python-poppler
which can be installed via Ubuntu's package manager apt.To install poppler python bindings open terminal and run this:
You should have poppler available in python then.
To search for such packages in future you can do
apt-cache search poppler
. It will list down all packages you can install via apt.rhfm7lfc3#
Go to link below https://www.ubuntuupdates.org/package/core/focal/main/base/poppler-utils And only click appropriate box to install
wz1wpwve4#
so run these commands on you system
sudo apt-get update
sudo apt install -y software-properties-common
sudo apt update
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
apt-get install -y poppler-utils