PDF 文件的 CUPS 打印
如何告诉 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这真的是基于 CUPS 的
lpr
,还是安装 CUPS 之前未删除的另一个假脱机系统的残余?通过运行 ldd $(which lpr) 来检查它,看看是否有任何对 libcups 的引用。
另外,完整的命令应该是:
对于正确且完整安装的 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:
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.