ghostscript on linux
Posted: Fri Jun 13, 2003 2:24 pm
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;
gswin32c being the command line .exe file for Ghostscript. So far so good, Now I need to upload this to a web host (shared hosting) on LINUX!!!! so I need a Ghostscript command line file, executable ? for linux. Now I have used linux (mandrake) and i know it all comes as source most of the time, but basicly I dont have the time or resources to install linux just to 'make' this file, can anyone advise/help me here.
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.
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;
Code: Select all
$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.