Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

I Want to make header fit the content in the pdf the default header leave a large white space

i Want to make header fit the content in the pdf the default header leave a large white space ,
i have customize print format , i’am using the default header but it leave a large white space in pdf ,
any help how to make it fit the content only

I’am using this div for header

 <div id="header-html" class="visible-pdf" style="margin: -15px 0px; display: block;">
<img align="left" src="/files/Logo.png" style="width: 20%">
<h3 align="right" style="margin: auto;"><br>Sales Invoice<br><small>{{ doc.name }}</small> 

i add this margin-top:auto

  <div id="header-html" class="visible-pdf>
<div>
   <img align="left" src="/files/Logo.png" style="width: 20%; margin-top:auto">
  </div>
  <div>
  <h3 align="right" style="margin-top:auto"><br>Sales Invoice<br><small>{{ doc.name }}</small> 
</h3>
 </div>

1 Like