[racket] Snips displaying pdfs

From: Eli Barzilay (eli at barzilay.org)
Date: Mon May 7 21:18:54 EDT 2012

A few minutes ago, Michael W wrote:
> Sure, but I mean, is there a better way to get at a dc<%>'s cairo
> context than (require racket/draw/private/local) ? From what I
> understand, those areas aren't meant to be used by third-party
> libraries, and definitely not by planet packages. Not all dc<%>s
> are even backed by cairo contexts...

(I don't know, which is why I said that I'm not sure it's "hacky".)

> 16 minutes ago, Eli Barzilay wrote:
> > Three hours ago, Michael W wrote:
> > > 
> > > I'm not rasterizing to a bitmap% or anything like that. Instead,
> > > I'm asking poppler to draw directly to the dc<%>'s cairo context
> > > (Eli and Matthew are probably cringing), which means that you can
> > > render to arbitrary dc<%> objects at the cost of being much more
> > > hacky than your version.
> > 
> > I don't know about "hacky" -- it just sounds like it'll invoke the
> > library for every redraw, which would be overall slower than going
> > through a bitmap that saves the results.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.