views:

75

answers:

0

I have a requirement to print an existing PDF file from a Python script.

I need to be able to specify the printer in the script. It's running on Windows XP.

Any ideas what I could do?

This method looks like it would work except that I cannot specify the printer:

win32api.ShellExecute (
  0,
  "print",
  filename,
  None,
  ".",
  0
)