title: How to convert HTML to PDF with python3
body: <p>How to convert HTML to PDF with python3? i write some code about webView with pyqt5,and i want to convert the html in the webView  to pdf,what should i do?</p>
  
  <p>i have tried to use the html2pdf,but it seem to only support python2.x 
  and i have tried to install the wkhtmltox-0.12.2.2_msvc2013-win64.exe and pdfkit,and then use the example code.</p>
  
  <pre><code>import pdfkit
  
  pdfkit.from_url('http://google.com', 'out.pdf')
  pdfkit.from_file('test.html', 'out.pdf')
  pdfkit.from_string('Hello!', 'out.pdf')
  </code></pre>
  
  <p>but i also failed.and the error is following.</p>
  
  <pre><code>Traceback (most recent call last):
  File "E:\Python34\lib\site-packages\pdfkit\configuration.py", line 21,  in __init__
  with open(self.wkhtmltopdf) as f:
  FileNotFoundError: [Errno 2] No such file or directory: b''
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
  File "&lt;pyshell#2&gt;", line 1, in &lt;module&gt;
    pdfkit.from_url('http://google.com', 'out.pdf')
  File "E:\Python34\lib\site-packages\pdfkit\api.py", line 22, in from_url
  configuration=configuration)
  File "E:\Python34\lib\site-packages\pdfkit\pdfkit.py", line 38, in __init__
  self.configuration = (Configuration() if configuration is None
  File "E:\Python34\lib\site-packages\pdfkit\configuration.py", line 27, in __init__
  'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
  OSError: No wkhtmltopdf executable found: "b''"
  If this file exists please check that this process can read it.   Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf
  </code></pre>
  
  <p>but i also failed.so what should i do?  My system is window7 x64 ,python's version is 3.4</p>