How can I create EPS files in C#? Are there any opensource libraries available or do I have to resort to the spec and do it by hand?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use the same principle as I suggested in the HTML to Postscript question here: html-to-postscript-conversion
It is clumsy to set up, but once it is done it works quite well. If you don't have a printer driver that creates EPS files you can download some of the freeware pdf creator printer drivers. I believe some of these allow you to create EPS files as well.
回答2:
The cairo library http://www.cairographics.org generate all kinds of graphical formats, svf, pdf or ps for instance, and it has bindings for c# I think.