[PHP] PHP PDFs...

2004-02-19 Thread Russell P Jones
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?

Russ Jones

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP PDFs...

2004-02-19 Thread Marek Kilimajer
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?

Russ Jones

Do you want to print the pdf on the server? PHPlib would not help you 
with this, it's for creating pdf documents. On unices you can execute 
lpr(1) command. I don't know about windoses.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP PDFs...

2004-02-19 Thread Evan Nemerson
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