On Thursday 19 February 2004 11:42 am, Russell P Jones wrote: > Is there any way to deal with PDFS using PHP and not installing PHPlib? I > simply need to pull the first page of a PDF document and print it out > using PHP. (Like a PDF preview of sorts)... > > Any ideas?
I'm assuming you meant pdflib, not phplib? If I'm reading your question right, I don't know of a way to do it purely from PHP. However, gs -q -dNOPAUSE -dBATCH -sOutputFile=output_file.pdf -sDEVICE=pdfwrite -dFirstPage=1 -dLastPage=1 -f input_file.pdf will give you what you want. What you want is a PDF of the first page of another PDF, right? > > Russ Jones -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php