|
From: | Dr. Alex Sheppard |
Subject: | Re: [Swftools-common] Pdftoswf on a webserver |
Date: | Thu, 08 Apr 2010 10:49:28 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.22 (X11/20090706) |
Hi Gerry, If all you need from the pdfs is the images, converting the whole pdf may be overkill? You could just use pdfimages (part of xpdf package, i think) to extract the images from the pdfs, convert to jpeg (convert is part of imagemagick), then work directly with those? Example Commands: pdfimages My.pdf image_no for i in image_no*.ppm; do echo "Converting $i"; convert $i -quality 80 ${i%.ppm}.jpg; rm $i; done I'm sure you could work this into a shell script to be called from php or whatever. Maybe it is more straightforward to use pdftoswf - i don't know - but extracting the images would be my inclination. Alex Dr. Alex Sheppard Mob: 0775 1074054 www.das-computer.co.uk Creighton, Gerry wrote: I can’t seem to find any examples or samples of how I could use pdftoswf on the web. |
[Prev in Thread] | Current Thread | [Next in Thread] |