HTML looks fine but generates blank page when generating PDF from HTML template
If you embed javascript code scripts into the head section of the HTML thens some of them may cause blank page in the output. Please try to add defer keyword to scripts declarations so loading of javascript code will be deferred (delayed).
Example:
Before:
<script type="text/javascript"> // some js code here </script>
After the fix:
<script defer type="text/javascript"> // some js code here </script>