weasyprint html to pdf blank

1.5k views Asked by At

I have installed weasyprint on Windows 7 and try to export an html string to pdf. Unfortunately the pdf output remains blank. Only the headings are visible as bookmarks in Acrobat Reader.This is the case for even the simplest html strings such as:

html = <h1>test</h1>
HTML(string=html).write_pdf('test.pdf') 

I run python 2.7 and have installed lxml, cffi, GTK+, I use Acrobat Reader XI. Png output does give the expected result. Any suggestions?

0

There are 0 answers