从 C# 中的 postscript 文档生成 PDF 文件
可能的重复:
itextsharp 后记到 PDF
对于应用程序,我从应用程序收到一个 postscript 文件。该 postscript 文件被发送到我们的应用程序,我们必须为最终用户生成一个 pdf 文件。
最快的方法是什么?是否有一个图书馆(免费或免费)可以完成这项工作?或者c#中的一些类可以做到这一点?
我们只能在代码中执行此操作,因此不需要“打印并选择 pdf 打印机”。
这必须在我们的 C# 应用程序中起作用。
有什么想法吗?
谢谢你!
Possible Duplicate:
itextsharp postscript to PDF
For an application, I receive a postscript file from an application. This postscript file is sent to our application, and we have to generate a pdf from it for end users.
What is the fastest way to do it? Is there a library(free or not) which does the job? Or some classes in c# which can do this?
We have to do this only in the code, so no "print and choose a pdf printer".
This has to work in our c# application.
Any idea?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要接收 PostScript,则需要 PostScript 解释器,别无选择。您还需要一个能够生成 PDF 文件而不是位图作为输出的文件。
据我所知,目前唯一仍然存在的开源 PostScript 解释器是 Ghostscript,它是在 GPL 下授权的。您必须确定您是否可以使用该许可证。
如果做不到这一点,还有几种商业替代方案。 Ghostscript 也获得商业许可,并且有来自 Global Graphics 和 Adobe 的产品。
You will need a PostScript interpreter if you are receiving PostScript, there is no alternative. You also need one which is capable of emitting a PDF file as output instead of a bitmap.
The only Open Source PostScript interpreter still in existence at the moment, as far as I know, is Ghostscript which is licenced under GPL. You would have to determine whether that licence is usable by you.
Failing that there are several commercial alternatives. Ghostscript is also licenced commercially, and there are products from Global Graphics and Adobe.