vue-html2pdf icon indicating copy to clipboard operation
vue-html2pdf copied to clipboard

why i have padding on my left side of my pdf?

Open akbarism opened this issue 3 years ago • 0 comments

Describe the bug everytime i generate pdf i always have padding on my left side of my pdf

To Reproduce Steps to reproduce the behavior:

  • when generate pdf

Screenshots image Package Version 1.8.0

Additional context here is my code : <vue-html2pdf :show-layout="false" :float-layout="true" :enable-download="true" :preview-modal="true" :paginate-elements-by-height="1400" filename="hee hee" :pdf-quality="2" :manual-pagination="false" pdf-format="a4" pdf-orientation="landscape" pdf-content-width="800px" @hasStartedGeneration="hasStartedGeneration()" @hasGenerated="hasGenerated($event)" ref="html2Pdf" > <section slot="pdf-content"> <div class="square"></div> </section> </vue-html2pdf> and in css : `

  • { padding: 0; margin: 0; } .square { width: 300px; height: 300px; background: salmon; } `

akbarism avatar Jul 02 '21 09:07 akbarism