Open tabish9936 opened 7 months ago
Hi, thanks for reporting issue, did you add the config "margin" when calling the plugin function?
html2PDF([
document.getElementById('first'),
document.getElementById('second'),
], {
// => margin config is here
margin: {
top: 10,
right: 10,
bottom: 30,
left: 10,
},
html2canvas: {
scrollY: 0,
scrollX: 0,
},
autoResize: false,
})
it is not working
As I am converting html to pdf if the html content is of the one page then it is fine if the content goes beyond that then the text in the in the 1st page get break down so need add the margin top at the 2nd page onwards but there is no such functionality for it.
Onlinedoc_1705929661378803cb (9).pdf