html2pdf.js
html2pdf.js copied to clipboard
incomplete display in windows
code
html2pdf.set({margin: [10, 12, 10, 12], jsPDF: { unit: 'mm', orientation: 'portrait', format: 'a4' }}).from(prtinContainer).save()
version
"html2canvas": "^1.3.2",
"html2pdf.js": "^0.10.1",
"jspdf": "^2.4.0",
issues
The right side of the pdf printed on windows is incomplete, and the margins on both sides are different.
Hi @linkaiqiyi can i solve this?
@linkaiqiyi Hello, I have the same issue, the rightest column of a table is cut off completely. jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } I changed the format to A3, orientation to "landscape", doesn't change anything.
Change the orientation to "landscape" worked. Have to clear cache.