title: How to convert a .pptx to .pdf using Python
body: <p>I have been looking  to convert a .pptx file to a .pdf file through a Python script for several hours but nothing seems to be working. </p>
  
  <p><strong>What I have tried:</strong> I have tried 1) <a href="http://odetocode.com/blogs/scott/archive/2013/06/26/convert-a-directory-of-powerpoint-slides-to-pdf-with-python.aspx" rel="noreferrer">this script</a> which calls windows32.client, and 2) <a href="http://dag.wiee.rs/home-made/unoconv/" rel="noreferrer">unoconv</a>, but none of them seem to be working for me. </p>
  
  <p><strong>Problems encountered:</strong> Using script from first option throws up an error (<code>com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147024894), None)</code>), whereas in second option Python can't seem to recognize <code>unoconv</code> even after installing it using pip.</p>
  
  <p>I also saw some recommended <a href="http://pandoc.org/scripting.html" rel="noreferrer">Pandoc</a>, but I can't understand how to use it for Python.</p>
  
  <p><strong>Versions I am using:</strong> Python 2.7.9, Windows 8.1 </p>