在我打印时,我的 Deskjet-3050 被选为默认打印机。
我希望“打印到文件”成为默认的“打印机”而不使用 cups-pdf
我特别不想使用cups-pdf,因为它呈现文本的方式(见下文)。我不完全确定它在做什么,但似乎它将文本呈现为位图并将它们嵌入到 pdf 中(因为我无法突出显示/复制/搜索嵌入的文本,因为我使用的是标准打印到文件 pdf) .
注意,这不是欺骗:我可以将 PDF 设为“打印到文件”的默认值吗?
通过运行停止 cupsd
sudo stop cups
Run Code Online (Sandbox Code Playgroud)
然后使用您喜欢的编辑器编辑 /etc/cups/printers.conf。
找到显示以下内容的行
<DefaultPrinter somename>
Run Code Online (Sandbox Code Playgroud)
并将其更改为
<Printer somename>
Run Code Online (Sandbox Code Playgroud)
然后启动cupsd
sudo start cups
Run Code Online (Sandbox Code Playgroud)
这应该删除默认打印机,从而将打印到文件恢复为默认打印机。