title: Programmatically Print a PDF File - Specifying Printer
body: <p>I have a requirement to print an existing PDF file from a Python script.</p>
  
  <p>I need to be able to specify the printer in the script.  It's running on Windows XP.</p>
  
  <p>Any ideas what I could do?</p>
  
  <p><a href="http://timgolden.me.uk/python/win32_how_do_i/print.html" rel="noreferrer">This method</a> looks like it would work except that I cannot specify the printer:</p>
  
  <pre><code>win32api.ShellExecute (
    0,
    "print",
    filename,
    None,
    ".",
    0
  )
  </code></pre>