[racket] Snips displaying pdfs

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Mar 18 10:29:01 EDT 2012

2012/3/17 Neil Van Dyke <neil at neilvandyke.org>:
> Jens Axel Søgaard wrote at 03/17/2012 09:17 AM:
>
>> Is it possible to display pdfs in snips without converting them to
>> bitmaps?

> You might be able to implement this using Poppler.
>  http://en.wikipedia.org/wiki/Poppler_%28software%29

Looks like Poppler is the way to go.

I can now open a pdf-file and render it into a cairo_t context.
The code is attached. To test that the rendering works,
I saved it in a png, and then displayed it in a snip.

I am struggling with creating a bitmap directly from the cairo context.
Any pointers?

-- 
Jens Axel Søgaard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: racket-poppler.rkt
Type: application/octet-stream
Size: 2818 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120318/8ed1ff13/attachment.obj>

Posted on the users mailing list.