Open opeeters opened 3 years ago
This happens when calling qpdf.strip_page
on this line.
There qpdf
is None
, which is likely because qpdf
is not installed.
Or maybe it is installed, but something goes wrong when trying to open it in a subprocess, and this is misinterpreted. Can you try qpdf
on the command line?
I am not sure if that can be installed with yum
or with ruby/gem.
There are CentOS instructions in this repo, but that is a document from 2012 and does not mention qpdf
.
qpdf
was available via the cli.
Diving into my documentation I had installed qpdf
like this:
curl -L -O https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.0.1/qpdf-10.0.1.tar.gz
tar -xvf qpdf-10.0.1.tar.gz
cd qpdf-10.0.1
./configure --disable-crypto-openssl # solving compilation issue with --disable-crypto-openssl
make
make install
I also tried the yum
-version of qpdf
, but than you get version 5.0.1
Upgrading to qpdf 10.1.0
fixed it:
curl -L -O https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.1.0/qpdf-10.1.0.tar.gz
tar -xvf qpdf-10.1.0.tar.gz
cd qpdf-10.1.0
./configure
make
make install
qpdf --version
Run buildout as your plone user after upgrading qpdf and restart the plone instance.
I'm getting the following error message when converting e.g. PDF's (on CentOS 7):