Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何告诉lpr命令 (CUPS) 我的文件实际上是 PDF?
lpr
lpr file.pdf
不会打印任何东西。
这真的是基于 CUPS 的lpr,还是在安装 CUPS 之前没有移除的另一个假脱机系统的残余?
通过运行检查它ldd $(which lpr),看看是否有任何对 libcups 的引用。
ldd $(which lpr)
此外,完整的命令应该是:
lpr -P printername file.pdf
对于正确且完全安装的 CUPS,您无需告诉它您发送打印的文件类型。它将“自动键入”输入,并应用正确的转换过滤器以使其可被目标打印机消化。