poppler

Add Poppler to Path in Debian

℡╲_俬逩灬. 提交于 2019-12-13 02:39:25
问题 I have just installed poppler on my debian server using the command: sudo apt-get install poppler-utils However, when I execute the command: pdftocairo --help The function cannot be found, so I assume this program has not automatically linked into my PATH variable. My issue is that I am not very experienced with Linux and I don't know how to find out where poppler installed, nor how to create a link file to Poppler from an existing included PATH location. Any help would be appreciated,

read, highlight, save PDF programmatically

孤街浪徒 提交于 2019-12-12 08:24:21
问题 I'd like to write a small script (which will run on a headless Linux server) that reads a PDF, highlights text that matches anything in an array of strings that I pass, then saves the modified PDF. I imagine I'll end up using something like the python bindings to poppler but unfortunately there's next to zero documentation and I have next to zero experience in python. If anyone could point me to a tutorial, example, or some helpful documentation to get me started it would be greatly

How to install python-poppler-qt4 on windows

霸气de小男生 提交于 2019-12-11 11:09:20
问题 I would like to know how to install python-poppler-qt4 on windows.I have already installed python 2.7 ,pyqt4 using window installer as well as SIP. However, when I tried to install python-poppler-qt4 through pip install, error was found : import PYQT4.pyqtconfig ImportError:No module named pyqt.config From what I have understand, it is because I installed the binary packages for pyqt4 rather than from the source packages so this pyqt.config.Yet if I installed it from source, it mean that I

exploiting poppler in Qt creator - help

删除回忆录丶 提交于 2019-12-11 06:59:39
问题 I am trying to compile a Qt project that uses poppler library for pdf (linux). I put #include in the mainwindow.cpp I put poppler folder in my project folder besides mainwindow.cpp poppler-qt4.h is in poppler-0.16.7/qt4/src I do not need to recompile poppler, I just need to link the library through its headers but I do not know how to do. If compilation is necessary I can do it, but I tried ./configure and it said "./configure not found". I searched for other similar threads but they were not

cannot install pdftotext on windows because of poppler

。_饼干妹妹 提交于 2019-12-08 19:25:31
I am trying to install pdftotext on windows: pip install pdftotext It failed originally because of lack of MS visual studio (now installed) and now it fails with a poppler problem. I have downloaded poppler and it is installed in C:\Program Files (x86)\poppler my path includes this directory. The install fails with an error I cannot find the file poppler-cpp.lib in Program Files (x86) I know that installing poppler is problematic and there are many questions on the web relating to it and one seems to be my problem exactly (mark on 19 July 2018), but no solution seems to have been offered. I

cannot install pdftotext on windows because of poppler

萝らか妹 提交于 2019-12-08 07:54:20
问题 I am trying to install pdftotext on windows: pip install pdftotext It failed originally because of lack of MS visual studio (now installed) and now it fails with a poppler problem. I have downloaded poppler and it is installed in C:\Program Files (x86)\poppler my path includes this directory. The install fails with an error I cannot find the file poppler-cpp.lib in Program Files (x86) I know that installing poppler is problematic and there are many questions on the web relating to it and one

Installing Poppler on cygwin

北慕城南 提交于 2019-12-07 02:11:42
问题 I just downloaded Poppler 0.16.5 and I am clueless on how to install this package on cygwin. Can anyone tell me whats the proper command in order to install poppler? 回答1: Actually there is a poppler package inside Cygwin 1.7.17-1. Run setup.exe and then do the following: On the window titled "Cygwin Setup", click Next> On the window titled "Cygwin Setup - Choose Installation Type" choose "Install from Internet" and click Next> On the window titled "Cygwin Setup - Choose Installation Directory

how to extract pdf index/table-of-contents with poppler?

不羁的心 提交于 2019-12-06 11:27:25
问题 I see that pdf-viewers like okular and evince are able to display the index of a pdf document (book) very well, with link to every paragraph. How can they do so? They use poppler library, how could I do extract that index with poppler, or in general? 回答1: it just stops at first level (recursion needed to go more deeply) toc=document->toc(); QDomElement docElem = toc->documentElement(); QDomNode n = docElem.firstChild(); while(!n.isNull()) { QDomElement e = n.toElement(); // try to convert the

How to display PDF with python-poppler-qt4?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 08:19:00
I have downloaded and installed python-poppler-qt4 and I am now trying out a simple Qt application to display a PDF page. I've followed what I've been able to get from the web, i.e. convert the PDF to a QImage, then to a QPixMap, but it doesn't work (all I get is a small window with no visible content). I may have failed at some point ( QImage.width() returns the width I have input, QPixMap.width() returns 0). Here is the code: #!/usr/bin/env python import sys from PyQt4 import QtGui, QtCore import popplerqt4 class Application(QtGui.QApplication): def __init__(self): QtGui.QApplication.__init_

How to display a PDF in its true scale with Poppler?

不想你离开。 提交于 2019-12-06 01:35:19
I am getting confused as to how to display a PDF document in its true scale, i.e. scale = 100%. NB: I am using python-poppler-qt4 . Poppler-qt4 provides a method to get the true size of the PDF in points : document = Poppler.Document.load('mypdf.pdf') page = document.page(0) size = page.pageSize() # returns a QSize object Then to render the page into a QImage , one should provide the resolution of the graphics device, in dots per inch (DPI): image = page.renderToImage(72, 72) Now since the natural size of the document is provided in points (i.e. 72 per inch), and the image renderer requires