HTML to pdf gives a blank page

Viewed 24

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

the code i use:

                a.document.write('<html>');
                a.document.write('<body >');
                a.document.write('<h1>'+TitelPrint+'</h1>');
                a.document.write('<img style="border: solid; max-height: 80%; max-width: 80%; margin-top: 5%" src="' + Image0 + '"/>');```

Titelprint is the Titel you can see on top. 

  
0 Answers
Related