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
{{ message }}
Repository navigation
Issue with HTML to PDF Translation - Images Getting Cut Off #249
I am encountering an issue while attempting to translate HTML content into PDF format. The content includes tables and images, but there is a specific problem where images are being cut in half when the content flows onto the next page. I am seeking guidance on how to resolve this issue.
Activity
amanshitta-crossml commentedon Aug 29, 2023
Here's additional information on how I am generating the PDF and the available options for PDF creation.
`pdf_options = {
'page-size': 'Letter',
'margin-top': '1in',
'margin-right': '0.75in',
'margin-bottom': '0.75in',
'margin-left': '0.75in',
'encoding': 'UTF-8',
'header-line': None,
'header-html': 'header.html',
'footer-html': 'footer.html',
'disable-external-links': None,
'quiet': None
}
pdfkit.from_string(html_content, output_file, options=pdf_options)`