title: HTML to pdf gives a blank page
body: <p>I made a wordpress plugin so i can download a PDF,
  i get all the Elements (images and text) no header and no footer.
  and i set a certain image size so the Title and the first image should be on the first PDF page, this is not true
  [blank pdf page][1] [1]: https://i.stack.imgur.com/YjM0J.jpg</p>
  <p>the code i use:</p>
  <pre><code>                a.document.write('&lt;html&gt;');
                  a.document.write('&lt;body &gt;');
                  a.document.write('&lt;h1&gt;'+TitelPrint+'&lt;/h1&gt;');
                  a.document.write('&lt;img style=&quot;border: solid; max-height: 80%; max-width: 80%; margin-top: 5%&quot; src=&quot;' + Image0 + '&quot;/&gt;');```
  
  Titelprint is the Titel you can see on top. 
  
    
  </code></pre>