html2pdf.js icon indicating copy to clipboard operation
html2pdf.js copied to clipboard

incomplete display in windows

Open lin52025iq opened this issue 2 years ago • 3 comments

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.

lin52025iq avatar Mar 04 '22 03:03 lin52025iq

Hi @linkaiqiyi can i solve this?

NehaK275 avatar Mar 07 '22 07:03 NehaK275

@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.

denglang avatar Mar 15 '22 14:03 denglang

Change the orientation to "landscape" worked. Have to clear cache.

denglang avatar Mar 15 '22 14:03 denglang