On 27/08/2026 13:08, Rob Cliffe via Python-list wrote:
I have a Windows 11 laptop and an Epson WF-4820 printer.
Is there any way I can programmatically print two files, one on each side of the same sheet of paper?
The following program doesn't quite work (Python 3.13.3):

[snip]
What happens:
It prints the first file on one side of a sheet, then sucks the sheet back in and prints nothing on the other side.
(Nothing, because the document is short and fits on one side).
Then ejects the paper.
Then does the same thing with the other file.
In other words each file is printed (separately) in duplex mode,
but they are not printed on the same sheet.

If what I want is possible (from my research so far I'm  getting the impression that it isn't) can I do the same thing with image files (print two on opposite sides of the same sheet) ?
If they are both plain text files, you could try concatenating them into one file with a Form Feed character (chr(12) or "\f") between them and then print that.
--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to