-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Hello @eKoopmans,
thank you again for such a great tool. I was wondering if you you or anyone has encountered this problem. I am using html2pdf lib to produce a PDF where the html is dynamic and changing. I have tried adjusting the margins but for some cases, when the text within the html is long and needs to go onto the next page, the text on the last line is sliced. Here is an example of what I mean: Is it possible that this might be due to the docHeight of the canvas as mentioned in #6?
This is how I am producing the pdf:
html2pdf(pdf_element, {
margin: [0.8, 1, 0.5, 1],
filename: pdf_name,
image: { type: 'jpeg',quality: 0.98 },
html2canvas: { dpi: 192, letterRendering: true },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
});
FutoRicky and cik10p
