Fresh install and can't parse PDF files (Debian 11)

When things don't work as they should.
Post Reply
Posts: 1
Joined: Fri Jun 10, 2022 9:06 pm

Fresh install and can't parse PDF files (Debian 11)

Post by dotslashnatalie »

So I've noticed this issue on a fresh "direct install" and a docker install (Debian 11). When attempting to upload a PDF file I get error messages similar to the following:

pdftoppm Gen inside xref table too large (bigger than INT_MAX)

(Same issue as this post - viewtopic.php?p=8727 )

I'm guessing that the version in the Debian repos are old/buggy? But the issues are resolved with a recompile of the latest version of poppler (pdf conversion tools).

I suggest putting this or a version of this in the docker image itself. If you don't - anyone who installs Mayan on Debian will think it's broken.

This is Debian specific so.....YMMV and I'll leave it up to you on the specifics. Perhaps it might even be worth it to create a debian package of the tools (it does make one during the build but the paths are wrong as noted by the use of ln).

Code: Select all

apt update
apt install cmake build-essential libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev libnss3 libnss3-dev libqt5core5a libtiff5-dev libqt5gui5 libcairo2-dev libcairo2 libqt5widgets5 libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libgtk-3-dev libgtk-3-common libopenjp2-7 libopenjp2-7-dev gobject-introspection liblcms2-2 liblcms2-dev curl libcurl4-openssl-dev zlib1g-dev zlib1g git pkg-config wget checkinstall

wget ""
tar -vxf poppler-22.06.0.tar.xz
cd poppler-22.06.0
mkdir test2
cd test2
git clone git:// .
cd ..
cmake -DTESTDATADIR=./test2 .
checkinstall make install

ln -s /usr/local/bin/pdfdetach /usr/bin/pdfdetach
ln -s /usr/local/bin/pdffonts /usr/bin/pdffonts
ln -s /usr/local/bin/pdfimages /usr/bin/pdfimages
ln -s /usr/local/bin/pdfinfo /usr/bin/pdfinfo
ln -s /usr/local/bin/pdfseparate /usr/bin/pdfseparate
ln -s /usr/local/bin/pdfsig /usr/bin/pdfsig
ln -s /usr/local/bin/pdftocairo /usr/bin/pdftocairo
ln -s /usr/local/bin/pdftohtml /usr/bin/pdftohtml
ln -s /usr/local/bin/pdftoppm /usr/bin/pdftoppm
ln -s /usr/local/bin/pdftops /usr/bin/pdftops
ln -s /usr/local/bin/pdftotext /usr/bin/pdftotext
ln -s /usr/local/bin/pdfunite /usr/bin/pdfunite
Post Reply