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
I am generating PDF files from contents within the "main" element. This way only the "printable" portion of the page is converted (excluding, for example, navigation elements also on the page). Generally, it works quite nicely. The issue I am seeing, however, is that with longer main portions of the page, the resultant PDF has a very large margin at the top of the page, and lower part of the content is truncated.
I am generating PDF files from contents within the "main" element. This way only the "printable" portion of the page is converted (excluding, for example, navigation elements also on the page). Generally, it works quite nicely. The issue I am seeing, however, is that with longer main portions of the page, the resultant PDF has a very large margin at the top of the page, and lower part of the content is truncated.
For example, this result is fine:
But with a longer content, this is happening:
Here is the code calling html2pdf:
If useful, here are the HTML (Jinja template) and CSS files for the page:
https://github.com/karencfisher/recipe-share/blob/main/templates/recipe-card.html
https://github.com/karencfisher/recipe-share/blob/main/static/recipe-card.css
The text was updated successfully, but these errors were encountered: