You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<html><head><linkrel="stylesheet" href="style.css"></head><body><divclass="head_text"><p>
Head text
</p></div><divclass="bottom_text"><p>
bottom text
</p></div></body></html>
This is the image what I see in the browser:
But in the PDF it becomes like this:
Since I didn't find any working solution other than generating the PDF with the headless browser, my last hope is using the weasyprint.
The text was updated successfully, but these errors were encountered:
That’s actually what we also do for non-flex boxes. By setting body { box-sizing: border-box }, with various fixes already in flex` (see #2362), it now works as expected.
Hello, so I'm trying to create a PDF from HTML that has flexbox in it, below is the code for the stylesheet and the HTML file
Stylesheet:
HTML
This is the image what I see in the browser:
![Image](https://private-user-images.githubusercontent.com/150016282/403869514-e66eae4c-9e7f-4ed4-81c4-7d665e5520ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjE5OTUsIm5iZiI6MTczOTQyMTY5NSwicGF0aCI6Ii8xNTAwMTYyODIvNDAzODY5NTE0LWU2NmVhZTRjLTllN2YtNGVkNC04MWM0LTdkNjY1ZTU1MjBjYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDQxMzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZjNiN2U5ZTNjYjg1ZGJkZjJhNWFjNTFhNjU1ODJhMDM2ZTliODZhOGJkYmMxYjIwODdlNjNlZmI1YzFlZmZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Kqa7cnnXMzJxmZLJKscQBRS_uggazXqeA2f8FZIxyoA)
But in the PDF it becomes like this:
![Image](https://private-user-images.githubusercontent.com/150016282/403869816-89bb12bd-eaa3-4625-8519-a1835184bd47.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjE5OTUsIm5iZiI6MTczOTQyMTY5NSwicGF0aCI6Ii8xNTAwMTYyODIvNDAzODY5ODE2LTg5YmIxMmJkLWVhYTMtNDYyNS04NTE5LWExODM1MTg0YmQ0Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDQxMzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDhhM2Q3MzM2NjIwMWJmY2Y5OWFmZjJmOWVhMTlkYzljZmNhY2QzYTJiMGM1YjcxM2NiMTQyMjc3YTBmYmM3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.C-b79_5JEn0pIJ5XHfydRxAJDqSlGPZGzkbzcoTL6vw)
Since I didn't find any working solution other than generating the PDF with the headless browser, my last hope is using the weasyprint.
The text was updated successfully, but these errors were encountered: