How to get a JPG image from a PDF?
How to get a JPG image from a PDF?
am 01.02.2008 07:06:08 von laredotornado
Hi,
I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
question). Given a PDF file, I want to be able to generate a JPG of
each page. I have no idea where to start but sure this is a problem
someone has tackled before.
Anything out there you would recommend? - Dave
Re: How to get a JPG image from a PDF?
am 01.02.2008 11:11:10 von Courtney
laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
> question). Given a PDF file, I want to be able to generate a JPG of
> each page. I have no idea where to start but sure this is a problem
> someone has tackled before.
>
> Anything out there you would recommend? - Dave
At the minimum use a screen capture program view each page, capture
it,and process to a JPEG ;-)
Re: How to get a JPG image from a PDF?
am 01.02.2008 12:59:56 von Luuk
schreef in bericht
news:28a68f6c-e990-43ab-9874-edc69ce510ee@1g2000hsl.googlegr oups.com...
> Hi,
>
> I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
> question). Given a PDF file, I want to be able to generate a JPG of
> each page. I have no idea where to start but sure this is a problem
> someone has tackled before.
>
> Anything out there you would recommend? - Dave
without PHP, you can use PDFcreator (www.pdfforge.org)
its a printerdriver that able to output to JPEG
but this is not from PHP, and only works on Windows......
Re: How to get a JPG image from a PDF?
am 01.02.2008 13:08:02 von Luuk
"Luuk" schreef in bericht
news:q6eb75-kao.ln1@leafnode.a62-251-88-195.adsl.xs4all.nl.. .
>
> schreef in bericht
> news:28a68f6c-e990-43ab-9874-edc69ce510ee@1g2000hsl.googlegr oups.com...
>> Hi,
>>
>> I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
>> question). Given a PDF file, I want to be able to generate a JPG of
>> each page. I have no idea where to start but sure this is a problem
>> someone has tackled before.
>>
>> Anything out there you would recommend? - Dave
>
> without PHP, you can use PDFcreator (www.pdfforge.org)
> its a printerdriver that able to output to JPEG
>
> but this is not from PHP, and only works on Windows......
>
>
>
>
some more googling revealed:
http://www.scriptsandstuffs.com/detail/9040/pdf2jpg-conversi on.html
Re: How to get a JPG image from a PDF?
am 01.02.2008 14:14:02 von colin.mckinnon
On 1 Feb, 06:06, "laredotorn...@zipmail.com"
wrote:
> Hi,
>
> I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
> question). Given a PDF file, I want to be able to generate a JPG of
> each page. I have no idea where to start but sure this is a problem
> someone has tackled before.
>
> Anything out there you would recommend? - Dave
ghostscript:
gs -sDEVICE=jpeg -sOutputFile=foo.jpg foo.pdf
Should work
C.
Re: How to get a JPG image from a PDF?
am 01.02.2008 21:28:40 von laredotornado
On Feb 1, 7:14=A0am, "C. (http://symcbean.blogspot.com/)"
wrote:
> On 1 Feb, 06:06, "laredotorn...@zipmail.com"
>
> wrote:
> > Hi,
>
> > I'm using PHP 4.4.4 (but can upgrade if that's the answer to this
> > question). =A0Given a PDF file, I want to be able to generate a JPG of
> > each page. =A0I have no idea where to start but sure this is a problem
> > someone has tackled before.
>
> > Anything out there you would recommend? - Dave
>
> ghostscript:
>
> gs -sDEVICE=3Djpeg -sOutputFile=3Dfoo.jpg foo.pdf
>
> Should work
>
> C.
To clarify, what I want is if I have a single PDF with 5 pages, I'd
like to be able to have 5 separate JPG files -- each file representing
each page of the PDF. Also, this is not something I want to do
manually, but rather programmatically using PHP, or at least the Linux
system it is running on.
Thanks, - Dave