kempsteven / vue-html2pdf

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.
https://www.npmjs.com/package/vue-html2pdf
MIT License
432 stars 75 forks source link

Text display is moving down in pdf #148

Open cuongpv219 opened 1 year ago

cuongpv219 commented 1 year ago

Text display is moving down. The browser showing:

Screen Shot 2022-10-26 at 10 51 29

But, showing in PDF like this

Screen Shot 2022-10-26 at 10 51 10

Package Version e.g. 1.8.0

aliwesome commented 1 year ago

@cuongpv219 @kempsteven

Exactly I've faced the same issue. any solutions?

aliwesome commented 1 year ago

@cuongpv219 Are you using tailwind for styling?

ChamkhiAnas commented 1 year ago

The same issue for me any solution ?

poorquality
ChamkhiAnas commented 1 year ago

@aliwesome have u found any solution to this issue plz ?

aliwesome commented 1 year ago

@ChamkhiAnas I used negative top margins for first p tags on each element to handle this, that was a quick fix.

ChamkhiAnas commented 1 year ago

@aliwesome thanks brother have a nice day