From PDF to Image

138 views
Skip to first unread message

Max

unread,
Jan 30, 2012, 6:55:00 AM1/30/12
to google-a...@googlegroups.com
Hi,
I'm building a service where the operator could check the fax arrived easily and fast. 
All the faxes arrive in an email address attached as PDF, so I'm thinking to store them in a Blobstore like images and then I can serve them in a HTML page to the operators. (I need thumbnails and everything, so could be really easy for clients to check them).
Could you see an easier way?
How can I transform PDF in images?

Thanks.

Max

Joshua Smith

unread,
Jan 30, 2012, 9:53:48 AM1/30/12
to google-a...@googlegroups.com
Set up a ghostscript-based service in Amazon EC2 to do the rendering for you.

Ghostscript on linux is pretty awesome. Everything else is very not awesome.  (The phrase "very not awesome" copyright 2012, Joshua Smith :)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/nMmdgTTJ4iMJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Massimiliano

unread,
Jan 30, 2012, 10:18:08 AM1/30/12
to google-a...@googlegroups.com
I don't know EC2. Is it easy?

2012/1/30 Joshua Smith <Joshua...@charter.net>



--
How to contact me: protocol.by/Massimiliano
Skype: massimiliano.pietroni

Barry Hunter

unread,
Jan 30, 2012, 10:23:50 AM1/30/12
to google-a...@googlegroups.com
On Mon, Jan 30, 2012 at 3:18 PM, Massimiliano
<massimilia...@gmail.com> wrote:
> I don't know EC2. Is it easy?

If you have to ask, I have to say No.

In the meantime, App Engine , does have an experimental Conversion API
http://code.google.com/appengine/docs/python/conversion/overview.html
that should be able to convert a PDF to a image.

Max

unread,
Jan 30, 2012, 10:32:16 AM1/30/12
to google-a...@googlegroups.com
This is easy. 
In the synchronously way what is "<b>some data</b>"?

Max

unread,
Jan 30, 2012, 11:00:48 AM1/30/12
to google-a...@googlegroups.com
This is like:

from google.appengine.api import conversion 

pippo = pippo.pdf (I'll get this from an upload)
asset = conversion.Asset("application/pdf", pippo, "pippo.pdf")
conversion = conversion.Conversion(asset, "image/png")
....

Greg

unread,
Jan 30, 2012, 8:41:02 PM1/30/12
to Google App Engine
A PDF containing a fax is likely to be a very light PDF wrapper around
an image (usually TIFF), so you may find you can extract the image
without all the overhead of rendering. I wrote a c library to do this
a while ago, but there may be python/java tools to do the same thing.

Cheers
Greg.
Reply all
Reply to author
Forward
0 new messages