sda*_*aau 15 command-line gnome printing
当您在 Gnome 打印对话框(不是 cups-pdf)中选择“打印到文件”时:
...实际执行的命令是什么?(我对 postscript 变体感兴趣,如图所示)
另一方面 - 也许没有命令调用;也许它gtk_print_operation_set_export_filename
来自新的 Gtk+ 打印 API?
在任何情况下 - 有没有办法让我从命令行使用这个特定的代码(不是pdf2ps
等等)?比如说,通过使用lpr
“打印到文件”到 postscript 文件 - 就像我在使用上面的对话框一样?
小智 3
lpr -P "Print_to_PDF" file_to_print
Run Code Online (Sandbox Code Playgroud)
要获取当前配置的打印机列表,请运行lpstat -p -d
。