Using HTML2PDF, text taking extra space
RoyNidhi opened this issue · 2 comments
RoyNidhi commented
I am using the HTML2PDF library, and on the click of the button, a pdf shows up to download. In that PDF, I'm getting extra space for some text only.
HTML:-
Vehicle Required: Bike
CSS:-
.chip-item{
padding: 11px;
font: 400 14px "GeneralSans-Regular", Arial, Sans-Serif;
color: #23201c;
background: #f8d834;
border-radius: 20px;
min-height: 36px;
display: flex;
}
MoussaPro commented
Did u solve this?
RoyNidhi commented
Yeah, It's because of the font size. I've changed the font size to 16px and then it worked fine.