[racket] Snips displaying pdfs

From: Michael W (mwilber at uccs.edu)
Date: Mon May 7 15:00:07 EDT 2012

This is wonderful. Do you mind if I publish a planet package
using this code?

2 months ago on Sunday, Mar 18, 08:29AM, Jens Axel Søgaard wrote:
> 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?

Posted on the users mailing list.