Open dahyui opened 3 years ago
Add another screenshot for reference - you can see in the preview model, the content below the table is not rendered but the HTML has been populated.
Does your pdf content have a really long height?
html2pdf.js uses canvas under-the-hood, canvases have a limit on height & width(limit depends on the browser), if your html height/width exceeds the limit there will be a chance that the content will be cut off.
Please see known issues: https://www.npmjs.com/package/vue-html2pdf#known-issues
There is a fix for this, haven't tried yet tho https://github.com/eKoopmans/html2pdf.js/issues/19#issuecomment-455868274
There is a fix for this, haven't tried yet tho eKoopmans/html2pdf.js#19 (comment)
@kempsteven I still can't figure out how to integrate the workaround with vue-html2pdf on beforeDownload event...
Describe the bug I cannot reproduce this consistently all the time, but at times, the pdf displays only the top half of the HTML content and it displays the content halfway down the page.
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem. correct.pdf - correct layout error.pdf - cut off content
Package Version 1.8.0