eKoopmans/html2pdf.js

Images and text are sliced and cutoff to the next page

moeenuddin3 opened this issue · 3 comments

I am using html2pdf to convert htmlstring into pdf. It is successfully creating pdf but the issue is that the images and text at the end of the page are sliced and cutoff to the next page. Please, review this issue and provide me any solution for this problem.
image
image

maybe add this to ur opt

pagebreak: {
                    mode: ['avoid-all', 'css', 'legacy']
                },

pagebreak: {
mode: ['avoid-all', 'css', 'legacy']
},

thanks its work

Text is still cutoff in page break condition when we are ausing all the mode in page break any idea how it might have occured