通过python打开控制面板打印机设置

时间:2020-11-09 20:57:53

标签: python pdf printing pywin32


目前,我通过exe打印
import subprocess

command = [
    "session/PDFtoPrinter.exe", "storage/storage_export.pdf",
    self.printer if self.printer is not None else "None"
]

subprocess.Popen(command)

self.printer基本上是打印机的名称,为字符串(例如“ BrotherMC 123”)。 正如预期的那样,打印机的界面将打开-我必须自行设置所有设置。 因此,即使有可能,我也无法弄清楚如何通过cmd传递设置。 因此,我认为有可能(而且我当然认为是)打开已安装打印机的此设置/属性提示以永久应用更改。

这是我正在谈论的对话框: enter image description here

我愿意接受有关打印的任何提示和技巧。
其他信息:
作业系统:Windows 10 64x
Python版本:3.7.x
FileTypetoprint:PDF
除热敏标签打印机外,通常可用于所有打印机的打印机类型

0 个答案:

没有答案