简体   繁体   English

如何从Haskell程序输出PostScript文件?

[英]How can one output a PostScript file from a Haskell program?

What libraries/modules exist to output PostScript files from Haskell? 存在哪些库/模块可从Haskell输出PostScript文件? The simpler and easier to use, the better. 使用起来越简单越好。 The only two features I need are the ability to draw points and lines. 我唯一需要的两个功能是绘制点和线的功能。

A quick Ctrl-F on Hackage finds three packages mentioning PostScript in their description: 快速使用Ctrl-F键查看Hackage,可以找到三个在说明中提到PostScript的软件包:

Additionally, the bindings to cairo have facilities for creating PostScript output: 此外,与cairo的绑定具有创建PostScript输出的功能:

http://hackage.haskell.org/packages/archive/cairo/0.12.3/doc/html/Graphics-Rendering-Cairo.html#v:withPSSurface http://hackage.haskell.org/packages/archive/cairo/0.12.3/doc/html/Graphics-Rendering-Cairo.html#v:withPSSurface

Perhaps one of these will suit your needs. 也许其中之一将满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM