Issue with HTML Grid Layout Conversion in wkhtmltopdf

84 views
Skip to first unread message

João Vítor Nunes Lopes

unread,
Mar 18, 2024, 1:30:55 PMMar 18
to wkhtmltopdf General
Specifically, I have been experiencing difficulties with maintaining the layout of HTML documents that utilize CSS Grid Layout when converting them to PDF using wkhtmltopdf. Instead of preserving the grid layout as intended, the resulting PDF output places the div elements on top of each other, resulting in a distorted layout.

I have thoroughly reviewed the documentation and experimented with various configurations and options, but unfortunately, I have not been able to resolve this issue. It seems that wkhtmltopdf may not fully support CSS Grid Layout during the conversion process.

As CSS Grid Layout is an increasingly popular and widely used feature in web development, it would greatly benefit users like myself if wkhtmltopdf could provide better support for preserving grid layouts during conversion to PDF.

I would appreciate any insights, suggestions, or workarounds that the community may have to offer regarding this matter. Additionally, if there are any updates or plans to address this issue in future releases of wkhtmltopdf, I would be eager to hear about them.

Thank you for your attention to this matter. I look forward to any assistance or feedback you can provide.

Best regards,

Atul sen

unread,
Mar 19, 2024, 1:15:22 AMMar 19
to wkhtmltop...@googlegroups.com
If you want to use a grid system in wkhtmltopdf, I'd be happy to help. You can achieve this by using CSS to set the parent div with display: table; and its child divs with display: table-cell; to divide them properly with the desired width for both child divs.

Esta mensagem (e eventuais anexos) pode conter informações confidenciais e/ou privilegiadas. Se você recebeu esta mensagem por engano, por favor, notifique o remetente imediatamente e apague-a, sem divulgar ou utilizar o seu conteúdo.

--
===================================================
You received this message because you are subscribed to the "wkhtmltopdf General" group.
To post to this group, send email to wkhtmltop...@googlegroups.com
To unsubscribe from this group, send email to wkhtmltopdf-gen...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/wkhtmltopdf-general?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "wkhtmltopdf General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wkhtmltopdf-gen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wkhtmltopdf-general/9adb66ad-9dc8-4eec-9c6b-a29f9238f022n%40googlegroups.com.


--
Thank You
Atul Sen
Web Designer
Alphawizz Technologies Pvt Ltd
Reply all
Reply to author
Forward
0 new messages