Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Syntax check: pdftk running through php exec

     
4:28 pm on Feb 12, 2010 (gmt 0)

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


I installed the library for pdftk on my LAMP, and am trying to run it programatically to split a pdf into separate files for each page..

Assuming that I have the correct location for the pdftk library should

<? $command = "/usr/local/bin/pdftk example.pdf burst";
exec($command); ?>


with the pdf in the same folder as the php script do it?
7:33 pm on Feb 15, 2010 (gmt 0)

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


Nobody, really?
12:07 am on Feb 16, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


Sounds about right. Have you tried this yet? If you have safe mode on, make sure that the pdftk is in the allowed execution directory.
5:46 pm on Feb 17, 2010 (gmt 0)

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


Hello, thanks for the reply, I have tried this and it doesn't do anything.. it also responds with no error.. no output.. nothing..

I appreciate your experience eelixduppy,
6:24 pm on Feb 17, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


Before trying through PHP, trying running the same command in the command line and tell me what happens.
8:26 pm on Mar 15, 2010 (gmt 0)

Full Member

10+ Year Member

joined:Mar 8, 2003
posts:234
votes: 0


turns out it wasn't installed correctly, I had my hoster instal the binary and the above code works great..
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members