在 Windows 上将 PDF 转换为 PCL5?

发布于 2024-09-02 06:21:15 字数 183 浏览 2 评论 0原文

在我的应用程序中,我需要将 PDF 文档转换为 PCL5 通用文件,以发送到支持 FTP PCL 的打印机。打印到文件是最后的手段,我更喜欢使用小型命令行工具或 API 来完成这项工作。

我看到有人提到使用 Ghostscript 在 Linux 上执行此操作,但我不知道如何在 Windows 上复制此操作。

非常感谢

In my application, I need to convert PDF docs to PCL5 generic files to send to FTP PCL capable printers. Printing to file would be a last resort, I would prefer a small-footprint command line tool or API that will do the job.

I've seen some mention of doing this on Linux using Ghostscript, but I've got no idea how to replicate this on windows.

Many thanks

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

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

发布评论

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

评论(3

沫雨熙 2024-09-09 06:21:15

Ghostscript 也适用于 Windows。
您可以通过打开命令窗口并使用 gswin32c 命令来测试它。
您可以构建一个 shell 脚本,发送包含所有所需选项的“gswin32c”命令。

可以帮助您找到正确的标志和选项顺序

Ghostscript is available also for windows.
You can test It with opening a command window and using the gswin32c command.
You can build a shell script that send the "gswin32c" command with all the options needed.

This could help you find the right sequence of flag and otpions

殊姿 2024-09-09 06:21:15

以下是一个示例命令,可以一次性从三个个 PDF 输入文件生成一个颜色 PCL/XL :(

gswin32c.exe ^
    -dBATCH ^
    -dNOPAUSE ^
    -dSAFER ^
    -sDEVICE=pxlcolor ^
    -sOutputFile=c:/path/to/my.pcl ^
    first.pdf ^
    2nd.pdf ^
    no3.pdf 

如果您只需要黑色+白色 PCL 输出,请使用 -sDEVICE=pxlmano)。如果您提前知道目标打印机,您可能需要使用其他一些 -sDEVICE=... 参数。

Here is an example command that would generate one color PCL/XL from three PDF input files in a single go:

gswin32c.exe ^
    -dBATCH ^
    -dNOPAUSE ^
    -dSAFER ^
    -sDEVICE=pxlcolor ^
    -sOutputFile=c:/path/to/my.pcl ^
    first.pdf ^
    2nd.pdf ^
    no3.pdf 

(use -sDEVICE=pxlmono if you want black+White PCL output only). If you know your target printer in advance, you'd probably want to use some other -sDEVICE=... param.

冷︶言冷语的世界 2024-09-09 06:21:15

您似乎正在寻找通用打印机驱动程序:
也许这个 hpijs-pcl5e 可能适合,或者你也可以尝试 HPLIP

Hp universal 可能是另一个起点。

OpenPrinting 一般来说,有很多你可以挖掘的材料。抱歉,我对这个主题的了解就到这里了。 :)

It seems you are searching for a generic printer driver:
maybe this hpijs-pcl5e could fit, or also you can try HPLIP

Hp universal could be another starting point.

OpenPrinting in general has a lot of material you can dig. I'm sorry but my knowledge about this subject arrives just here. :)

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