How do I print to the OS's default printer in Python 3 (cross platform)?

前端 未结 1 586
情书的邮戳
情书的邮戳 2020-12-03 05:28

I have a Python 3 script that is going to be doing some regex substitution on some Rich Text Files (rtf) and I would like to be able to print out a whole direct

相关标签:
1条回答
  • 2020-12-03 06:15

    There is no cross-platform way. On Linux and OS X you can invoke lpr(1) via subprocess and CUPS will handle the document conversion as best as possible, but Windows is trickier.

    0 讨论(0)
提交回复
热议问题