title: Print chosen worksheets in excel files to pdf in python
body: <p>I need to write a python script to read excel files, find each worksheet and then print these to pdf with the standard formating defined in the excel.</p>
  
  <p>I found the following question <a href="https://stackoverflow.com/questions/3239207/how-can-i-open-an-excel-file-in-python">How can I open an Excel file in Python?</a> which pointed me to <a href="http://www.python-excel.org/" rel="noreferrer">http://www.python-excel.org/</a></p>
  
  <p>This gives me the ability to find the names of each worksheet.</p>
  
  <pre><code>import xlrd
  book = xlrd.open_workbook("myfile.xls")
  print "Worksheet name(s):", book.sheet_names()
  </code></pre>
  
  <p>This results in</p>
  
  <pre><code>Worksheet name(s): [u'Form 5', u'Form 3', u'988172 Adams Road', u'379562 Adams Road', u'32380 Adams Road', u'676422 Alderman Road', u'819631 Appleyard Road', u'280998 Appleyard Road', u'781656 Atkinson Road', u'949461 Barretts Lagoon Road', u'735284 Bilyana Road', u'674784 Bilyana Road', u'490894 Blackman Road', u'721026 Blackman Road']
  </code></pre>
  
  <p>Now I want to print each worksheet which starts with a number to a pdf.</p>
  
  <p>So I can</p>
  
  <pre><code>worksheetList=book.sheet_names()
  for worksheet in worksheetList:
   if worksheet.find('Form')!=0: #this just leaves out worksheets with the word 'form' in it
    &lt;function to print to pdf&gt; book.sheet_by_name(worksheet) #what can I use for this?
  </code></pre>
  
  <p>or something similar to above...what can I use to achieve this?</p>
  
  <p>The XLRD documentation is confusing it says </p>
  
  <blockquote>
    <p>Formatting features not included in xlrd version 0.6.1: Miscellaneous
    sheet-level and book-level items e.g. printing layout, screen panes</p>
  </blockquote>
  
  <p>and  </p>
  
  <blockquote>
    <p>Formatting</p>
    
    <p>Introduction</p>
    
    <p>This collection of features, new in xlrd version 0.6.1, is intended to
    provide the information needed to (1) display/render spreadsheet
    contents (say) on a screen or in a PDF file</p>
  </blockquote>
  
  <p>see <a href="https://secure.simplistix.co.uk/svn/xlrd/trunk/xlrd/doc/xlrd.html?p=4966" rel="noreferrer">https://secure.simplistix.co.uk/svn/xlrd/trunk/xlrd/doc/xlrd.html?p=4966</a></p>
  
  <p>Which is true? can some other package be used to print to pdf?</p>
  
  <p>For unix I see that there is <a href="http://dag.wieers.com/home-made/unoconv/" rel="noreferrer">http://dag.wieers.com/home-made/unoconv/</a> anything for windows? I found <a href="https://gist.github.com/mprihoda/2891437" rel="noreferrer">https://gist.github.com/mprihoda/2891437</a> but can't figure out how to use it yet.</p>