Re: PHP & PDFs...
| From: | Evan Nemerson | Date: | Fri, 20 Feb 2004 01:01:19 +0000 |
| Subject: | Re: PHP & PDFs... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178306@lists.php.net to get a copy of this message | ||
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
evan@coeus-group.com
http://coeusgroup.com/en
--
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
-Benjamin Franklin