Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using HTML2PDF, text taking extra space #689

Open
RoyNidhi opened this issue Mar 26, 2024 · 2 comments
Open

Using HTML2PDF, text taking extra space #689

RoyNidhi opened this issue Mar 26, 2024 · 2 comments

Comments

@RoyNidhi
Copy link

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;
}

image

@MoussaPro
Copy link

Did u solve this?

@RoyNidhi
Copy link
Author

Yeah, It's because of the font size. I've changed the font size to 16px and then it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants