PDF 文件的 CUPS 打印

发布于 2024-12-22 07:24:44 字数 105 浏览 4 评论 0原文

如何告诉 lpr 命令 (CUPS) 我的文件实际上是 PDF?

lpr file.pdf

不会打印任何内容。

How can I tell the lpr command (CUPS) that my file is actually a PDF?

lpr file.pdf

won't print anything.

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

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

发布评论

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

评论(1

雨落□心尘 2024-12-29 07:24:45

这真的是基于 CUPS 的 lpr,还是安装 CUPS 之前未删除的另一个假脱机系统的残余?

通过运行 ldd $(which lpr) 来检查它,看看是否有任何对 libcups 的引用。

另外,完整的命令应该是:

lpr -P printername file.pdf

对于正确且完整安装的 CUPS,您不需要告诉它您发送打印的文件类型。它将“自动键入”输入,并应用正确的转换过滤器以使其可以被目标打印机消化。

Is this really the CUPS-based lpr, or is it a remnant of another spooling system which was not removed before installing CUPS?

Check it by running ldd $(which lpr) and see if there is any reference to libcups.

Also, the complete command should be:

lpr -P printername file.pdf

For a correctly and completely installed CUPS you'd not need to tell it the file type you send to print. It will "auto-type" the input, and apply the right conversion filters to make it digestable by the target printer.

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