Current time: 04-19-2014, 10:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
pdftk? possible at all on DH?
08-27-2011, 07:03 PM (This post was last modified: 08-27-2011 07:04 PM by mozgras.)
Post: #11
RE: pdftk? possible at all on DH?
YES Shadow700! Thank you, thank you, thank you!!
Find all posts by this user
Quote this message in a reply
09-05-2011, 02:49 PM
Post: #12
RE: pdftk? possible at all on DH?
So once you have installed it like that shadow700, then what do you do to make it run?

John
Find all posts by this user
Quote this message in a reply
04-19-2012, 12:39 PM
Post: #13
RE: pdftk? possible at all on DH?
For future reference, here is an updated script for installing pdftk on dreamhost shared hosting (assuming that Dreamhost is still running Debian 5.0.9 (lenny)

Code:
mkdir pdftk
cd pdftk
wget 'http://archive.debian.org/debian/pool/main/p/pdftk/pdftk_1.41-3_i386.deb'
wget 'http://archive.debian.org/debian/pool/main/g/gcj-4.2/libgcj8-1_4.2.4-4_i386.deb'
wget 'http://backports.mithril-linux.org/pool/main/g/gcc-4.3/libstdc++6-4.3-dev_4.3.4-6~bpo50+1_i386.deb'
ar p pdftk_1.41-3_i386.deb data.tar.gz | tar zx
ar p libgcj8-1_4.2.4-4_i386.deb data.tar.gz | tar zx
ar p libstdc++6-4.3-dev_4.3.4-6~bpo50+1_i386.deb data.tar.gz | tar zx
mkdir ~/bin
mkdir ~/lib
cp -pr usr/bin/* ~/bin
cp -pr usr/lib/* ~/lib
mv ~/bin/pdftk ~/bin/pdftk.target
echo '#!/bin/bash' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo 'export PATH=~/bin:$PATH;' >> ~/bin/pdftk
echo 'export LD_LIBRARY_PATH=~/lib:/usr/local/lib:$LD_LIBRARY_PATH;' >> ~/bin/pdftk
echo "" >> ~/bin/pdftk
echo '~/bin/pdftk.target "$@"' >> ~/bin/pdftk
chmod +x ~/bin/pdftk
cd ..
rm -rf pdftk

to use pdftk - you can use passthrough or exec - the path to pdftk needs to be "~/bin/pdftk"

I will not be checking back or responding to PM re support for this script
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: