Current time: 04-23-2014, 03:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
pdftk? possible at all on DH?
02-03-2008, 12:36 PM
Post: #1
pdftk? possible at all on DH?
Is it even possible at all to build pdftk? Or has anyone compiled gcj here and be willing to shoot me over a binary? I'm in need of a way to have a form populate a pdf and present it to the user, as well save those results for me.

This sample, http://accesspdf.com/html_pdf_form/pdf_f...erface.php works perfectly. It just requires pdftk and that requires gcj, using a binary for debian results in
./pdftk: error while loading shared libraries: libgcj.so.4: cannot open shared object file: No such file or directory
[nestea]$

Any ideas?
Find all posts by this user
Quote this message in a reply
02-06-2008, 04:54 PM
Post: #2
pdftk? possible at all on DH?
I'd love to be able to use pdftk on my site as well! Any ideas anyone?
Visit this user's website Find all posts by this user
Quote this message in a reply
02-23-2010, 08:58 AM
Post: #3
pdftk? possible at all on DH?
did either of you ever find a solution for this other than upgrading to dreamhostps.com? I am about ready to pay a buddy to make a work around. Let me know if you want info.
Find all posts by this user
Quote this message in a reply
02-23-2010, 10:21 AM
Post: #4
pdftk? possible at all on DH?
I was never able to get it going. Boo.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-23-2010, 10:24 AM
Post: #5
pdftk? possible at all on DH?
i am paying someone to go ahead and make build just for dreamhost shared hosting... if that works then I would share that with you for $25 to go towards the cost if you want. If that doesn't work I will have to upgrade to dreamhostph which is a min or 15 more a month. I will likely have to do that anyways but while I am developing and testing my app on a budget I want to avoid that.
Find all posts by this user
Quote this message in a reply
02-23-2010, 01:14 PM
Post: #6
pdftk? possible at all on DH?
I thought you had it going with just the link to the resultant file needing tweaking?

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost
Visit this user's website Find all posts by this user
Quote this message in a reply
02-25-2011, 01:36 AM (This post was last modified: 02-25-2011 01:38 AM by Cancian.)
Post: #7
RE: pdftk? possible at all on DH?
I have found a pre-compiled package of PDFTK, which did not work by itself. But, after changing some PATH vars, it did.

The files can be downloaded here:
http://www.ziddu.com/download/5241623/pd...1.zip.html

You should simply open the 'libgcj8-1_4.2.4-4_i386' package and extract the lib folder to the destination of your choice (mine was /home/username/lib) and then point the PATH to it. After that, the binary on the pdftk should be running.

The necessary PATH changes are:

Quote:export HOME=/home/YOUR_USERNAME;
export PATH=$HOME/bin:$PATH;
export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH;

I have set my php scripts to run these export commands every time prior to pdftk, and it has worked just fine.

Hope this helps anyone.

later.
Find all posts by this user
Quote this message in a reply
03-23-2011, 05:03 PM
Post: #8
RE: pdftk? possible at all on DH?
just followed you directions to the letter and it did nto work. getting a segfault when i try to execute pdftk from command line! help!
Find all posts by this user
Quote this message in a reply
04-02-2011, 06:07 AM
Post: #9
RE: pdftk? possible at all on DH?
(03-23-2011 05:03 PM)megrim Wrote:  just followed you directions to the letter and it did nto work. getting a segfault when i try to execute pdftk from command line! help!

I have not run into this error, so I really don't have much of an idea what might be the cause. Did you use the pre-compiled pdftk?
Find all posts by this user
Quote this message in a reply
07-13-2011, 05:29 AM
Post: #10
RE: pdftk? possible at all on DH?
Here are the commands that will download and install pdftk to your account. This works as of the date of this posting (2011-07-13).

After the commands are run, you will be able to execute pdftk with:

~/bin/pdftk

Do not run this if the directory you are in contains a directory called "pdftk" as it will be deleted in the last step.

Code:
mkdir pdftk
cd pdftk
wget 'http://ftp.egr.msu.edu/debian/pool/main/p/pdftk/pdftk_1.41-3_i386.deb'
wget 'http://ftp.br.debian.org/debian/pool/main/g/gcj-4.2/libgcj8-1_4.2.4-4_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
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
(There are 20 lines of code and the last line is an "rm" command)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: