将 PostScript 转换为 HTML

发布于 2024-09-14 10:26:55 字数 220 浏览 3 评论 0原文

对于我的一个项目,我需要使 PostScript 文件可供在线查看,我的目标是将这些 PostScript 文件转换为 HTML。我想在 VB.NET 代码和内存流中完成这一切,而不使用命令行程序。

我认为一个完美的解决方案可能是将 PostScript 写入流,并同时将输出流读取到 HTML 文件,然后再将其写入数据库。

让我知道我是否走在正确的道路上,以及您对如何实现这一目标有任何建议。

For one of my projects I need to make PostScript files available for viewing online, My goal is to convert these PostScript files to HTML. I'd like to do it all in VB.NET code and in-memory stream and without using command-line programs.

I think a perfect solution might be to write the PostScript to a stream, and simultaneously read the output stream to HTML file before writing it to a DB.

Let me know if I am on the right track, and if you have any suggestions on how to achieve this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人练习一个人 2024-09-21 10:26:55

我认为你最好将 PS 转换为 PDF 或 PNG。即使仅提取 PS 文件中的文本也是一个难题,除非您知道 PS 是如何生成的并且可以破解提取。

I think you'd be much better off converting PS to PDF or to PNG. Even extracting just the text in a PS file is a difficult problem unless you know how the PS is generated and can hack an extraction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文