用 Java 从 PDF 生成 PCL

发布于 2024-07-15 01:06:15 字数 39 浏览 4 评论 0原文

在java中从现有PDF文件生成PCL输出文件的最佳方法是什么?

What is the best way to generate a PCL output file from an existing PDF file in java?

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

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

发布评论

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

评论(3

葬﹪忆之殇 2024-07-22 01:06:15

JDK 6 中的 StreamPrintService 仅支持 PS。 我仍在寻找支持 PCL 的 StreamPrintService。

The StreamPrintService from JDK 6 does only support PS. I am still searching for a StreamPrintService which supports PCL.

2024-07-22 01:06:15

我们捕获 Acrobat 将 PDF 打印到 PCL 驱动程序生成的 PCL,并将其作为输入重定向到我们的 Windows 控制台 PCLXForm 程序。 通过自定义脚本,我们可以“流编辑”PCL。 我们可以提取地址块文本进行地址更正、插入更正的文本、添加智能邮件条形码、二维条形码、对文档进行排序、按页数进行批处理、更改托盘分配、与其他文档合并等。需要 www.pagetech.com 上的 PCLTool SDK - 选项 V

We capture PCL generated from Acrobat printing a PDF to a PCL driver and redirect as input to our Windows console PCLXForm program. With a custom script, we can "stream edit" the PCL. We can extract the address block text for address correction, insert the corrected text, add the Intelligent Mail Barcode, 2-D barcodes, sort the documents, batch them by page count, change tray assignments, merge with other documents, etc. The product required is PCLTool SDK - Option V at www.pagetech.com

千笙结 2024-07-22 01:06:15

这取决于您想要投资多少,以及解决方案需要有多强大。 为了快速而肮脏,您可以使用 PCL 驱动程序从 Adob​​e Acrobat 打印到文件(看,妈妈,没有 Java ...)。

Java 打印服务 API 可以处理PDF。 使用 StreamPrintService 并将流写入文件,使用 PCL 作为输出格式。

如果您需要对内容有更多的控制,也许修改它或添加内容,您可以使用 PDF 解析器(this例如,一个)并从应用程序启动的浏览器中打印生成的 HTML(例如,通过添加一些 Javascript)。

It depends on how much you want to invest, and how robust the solution needs to be. For quick and dirty, you can print from Adobe Acrobat to a file, using a PCL driver (look, mom, no Java ...).

The Java Print Service API can process PDF. Use StreamPrintService and write the stream to a file, using PCL for the output format.

If you need to have more control over the content, maybe modify it or add to it, you can use a PDF parser (this one, for instance) and print the resulting HTML from a browser that your application starts, by adding some Javascript, for example.

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