-
-
Save mbenatti/1082ca153ec46ea719c73f7156807498 to your computer and use it in GitHub Desktop.
Install Poppler from source on Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /app/ | |
wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.10.91.tar.gz | |
cd fontconfig-2.10.91 | |
tar -xzf fontconfig-2.10.91.tar.gz | |
./configure | |
make | |
cd /app/ | |
wget http://poppler.freedesktop.org/poppler-0.22.1.tar.gz | |
tar -xzf poppler-0.22.1.tar.gz | |
cd poppler-0.22.1 | |
FONTCONFIG_LIBS="-L/app/fontconfig-2.10.91/src/.libs/ -lfontconfig" FONTCONFIG_CFLAGS="-I/app/fontconfig-2.10.91/" ./configure | |
make | |
/app/poppler-0.22.1/utils/pdftotext your.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this code executed in every push?
Where do I put this code?