Reputation: 7844
I'm looking into using PDFtk, but I have several questions that I'm just going to bundle together. (Let me know if they should be asked separately.)
As a note, my server does not provide ssh access. I can contact support, however, if absolutely necessary, and they may be able to install it for me.
Upvotes: 0
Views: 1911
Reputation: 621
How would I install it on my shared web server?
You can include the binaries in your app, and then set the environment path to the bin
folder which holds the binaries.
$ mkdir -p [my_project]/vendor/pdftk/lib [my_project]vendor/pdftk/bin
$ cd /tmp
$ git clone https://github.com/millie/pdftk-source.git
$ cd pdftk-source
$ tar xzvf pdftk.tar.gz
$ mv bin/pdftk [my_project]/vendor/pdftk/bin/
$ mv lib/libgcj.so.12 [my_project]/vendor/pdftk/lib/
$ cd [my_project]
How do you use it?
First, read the PDF Labs Documentation, and then post if you have a question on how to do something specific
Upvotes: 1
Reputation: 721
First thing is you need to have root access to install PDFtk which you don't with a shared hosting account. The only shared hosting company I could find that has it preinstalled on all their servers is BlueHost.com. I started with a shared hosting account and now have my own VPS. When you get an account with them you don't need to do any setup on the server side, everything is preinstalled.
Below is a link to PDFtk's manual page. You can also Google lots of code examples. http://www.pdflabs.com/docs/pdftk-man-page/
Upvotes: 0