Results 1 to 6 of 6
Thread: ghostscript on linux
-
06-13-2003, 03:17 PM #1Junior Guru Wannabe
- Join Date
- Apr 2003
- Location
- Uk midlands I think
- Posts
- 42
ghostscript on linux
Righty ...
What Im doing is creating a application for a client that allows users to select pre-made pdf docs, that are then merged into one document using ghostscript and emailed to them.
Bellow is the script to merge the selected docs;
PHP Code:$command = 'gswin32c -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output/' . $_POST['filename'];
foreach($_POST['files'] as $file) {
$command .= ' files/' . $file;
}
passthru($command, $ret_var);
I am awhere that my host may not allow this sort of php, passthru/exec/system functions, uptill now it hasnt been promising,(I will have to contact them). but if anyone has done this before, or can send a linux copy of gs to me, i would be very grateful to say the least.
-
06-14-2003, 06:11 AM #2Junior Guru Wannabe
- Join Date
- Apr 2003
- Location
- Uk midlands I think
- Posts
- 42
*bump*
-
06-14-2003, 03:46 PM #3Junior Guru Wannabe
- Join Date
- Apr 2003
- Location
- Uk midlands I think
- Posts
- 42
* bump *
-
06-14-2003, 05:25 PM #4New Member
- Join Date
- Jan 2003
- Location
- Alabama, USA
- Posts
- 4
First thing you'll want to do is find out what Linux distribution (and version of that distribution) the server is running, since an executable not built on that distribution might not work due to library dependencies and differing versions between distributions. If you're unable to find out, a statically linked executable might work, but getting an executable that was built on the same distribution that your server is running would probably be your best bet.
-
06-15-2003, 03:42 PM #5Junior Guru Wannabe
- Join Date
- Apr 2003
- Location
- Uk midlands I think
- Posts
- 42
php_uname returns
Linux infong 2.4.20-grsec #1 SMP Tue Jan 28 09:09:35 CET 2003 i686 unknown
Mean anything to you ?
-
06-15-2003, 05:52 PM #6New Member
- Join Date
- Jan 2003
- Location
- Alabama, USA
- Posts
- 4
Originally posted by koorb
php_uname returns
Linux infong 2.4.20-grsec #1 SMP Tue Jan 28 09:09:35 CET 2003 i686 unknown
Mean anything to you ?