Last active
October 7, 2017 22:55
-
-
Save djudd/4773044 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
You should switch line 3 and 4! Otherwise it works just fine! Thanks!