[racket] pdf-dc%: Generating a pdf with image embedded in jpeg format?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Dec 8 15:56:24 EST 2014

What I would have done (before or after) would be to put this into a
file in DrRacket

#lang racket/gui
pdf-dc%

And then right click on "pd-dc%" and go to its definition (or
control-x;d on some platforms). You can also do this via the Emacs
racket-mode, of course.

Robby


On Mon, Dec 8, 2014 at 2:16 PM, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> Let's say I can't remember that pdf-dc% is in racket/draw.
> Before the repository split I'd visit the racket/plt repository at
> Github and search within the repository.
>
> How do I seach for pdf-dc% in all repositories of the racket user?
>
> /Jens Axel
>
>
> 2014-12-08 20:47 GMT+01:00 Robby Findler <robby at eecs.northwestern.edu>:
>> Ah, sorry. I guess I'm not sure what happens, but it wouldn't surprise
>> me to learn that the way Racket/cairo saves bitmaps in pdf files
>> involves no compression in the resulting files. It may be possible to
>> learn more by looking at the implementation of pdf-dc%.
>>
>> Robby
>>
>>
>> On Mon, Dec 8, 2014 at 1:25 PM, Daniel Prager <daniel.a.prager at gmail.com> wrote:
>>> Hi Robby
>>>
>>> I include the images (via Scribble) to produce a pdf file.
>>>
>>> I think the reason I export them in the first place (workaround #1 ;-) is to
>>> gain control of resolution, which I raise to 300 for key images.
>>>
>>>
>>> Dan
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users
>
>
>
> --
> --
> Jens Axel Søgaard


Posted on the users mailing list.