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

CSS float not working with pdfkit #245

Open
RyuFeng opened this issue Mar 23, 2023 · 1 comment
Open

CSS float not working with pdfkit #245

RyuFeng opened this issue Mar 23, 2023 · 1 comment

Comments

@RyuFeng
Copy link

RyuFeng commented Mar 23, 2023

Hey,
Because of rendering speed for large pdfs I had switched from weasyprint to pdfkit before and while most things worked with it, all of the alignment was messed up because it couldn't work with float. Is it possible to add support for float?

@insomnia33
Copy link

insomnia33 commented Jun 28, 2023

Try switching the display and other properties to -webkit

Worked for me, prob. because wkhtmltopdf is compatible with QtWebkit

example:
display: -webkit-box;
-webkit-box-align: center;
-webkit-box-pack: center;

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