Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render to postscript #8

Open
muraiki opened this issue Nov 27, 2012 · 2 comments
Open

Render to postscript #8

muraiki opened this issue Nov 27, 2012 · 2 comments

Comments

@muraiki
Copy link
Owner

muraiki commented Nov 27, 2012

Implement render to PS

I had been thinking about how to do this when I caught a relevant discussion on the Racket users mailing list:


You should be able to, inside the draw library, swap out the dc that
gets drawn into, from a dc that you get from a canvas into a dc that
you get by creating a post-script-dc%.

You could even make it a recording dc and draw it in both places.

Robby

On Tue, Nov 27, 2012 at 1:16 PM, David Van Horn wrote:

On 11/10/12 2:54 PM, David Van Horn wrote:

Is there an easy way to render draw.ss drawings to PDF or PS?

A) I know draw.ss is deprecated -- this is legacy code

B) It's OK if the solution involves "magic" (e.g. using some pict
library) -- this is just a one-off thing to render some drawings in a
high-quality printing format.

I just wanted to ping the list one more time before trying to dig in to
this.

Thanks,

David

Racket Users list:
http://lists.racket-lang.org/users

@muraiki
Copy link
Owner Author

muraiki commented Nov 30, 2012

We might be able to use the save-svg-image function and then use another program to convert that to PS/PDF. See http://docs.racket-lang.org/teachpack/2htdpimage.html?q=pinhole#%28def._%28%28lib._2htdp/image..rkt%29._save-svg-image%29%29

@muraiki
Copy link
Owner Author

muraiki commented Jul 23, 2013

Scribble, a Racket DSL for documentation, apparently has PDF rendering capability: http://docs.racket-lang.org/scribble/renderer.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant