title: Converting Multiple html file into pdf using pdfkit in Python
body: <p>I try converting multiple html file into pdf using pdfkik. This is my code:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  from selenium import webdriver
  import pdfkit
  
  driver=webdriver.Chrome()
  driver.get('https://www.linkedin.com/in/jaypratappandey/')
  time.sleep(40)
  soup= BeautifulSoup(driver.page_source, 'lxml')
  data=[]
  f=open('htmlfile.html', 'w')
  top=open('tophtmlfile.html', 'w')
  
  for name in soup.select('.pv-top-card-section__body'):
      top.write("%s" % name)
  
  for item in soup.select('.pv-oc.ember-view'):
      f.write("%s" % item)
  
  
  pdfkit.from_file(['tophtmlfile.html', 'htmlfile.html'], 'jayprofile.pdf')
  
  driver.quit()
  </code></pre>
  
  <p>This code give the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "lkdndata.py", line 23, in &lt;module&gt;
      pdfkit.from_file(['tophtmlfile.html', 'htmlfile.html'], 'ankurprofile.pdf')
    File "/usr/local/lib/python3.5/dist-packages/pdfkit/api.py", line 49, in from_file
      return r.to_pdf(output_path)
    File "/usr/local/lib/python3.5/dist-packages/pdfkit/pdfkit.py", line 156, in to_pdf
      raise IOError('wkhtmltopdf reported an error:\n' + stderr)
  OSError: wkhtmltopdf reported an error:
  Error: This version of wkhtmltopdf is build against an unpatched version of QT, and does not support more then one input document.
  Exit with code 1, due to unknown error.
  </code></pre>