-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Hello! I am using chart.js for graphics on my web page.
The problem:
On pdf view one of them is cutted for A4 view.
My config:
const openPdfInNewWindow = (pdf) => {
const blob = pdf.output('blob');
window.open(window.URL.createObjectURL(blob));
};
html2pdf(input, { // my selector
margin: 0,
filename: name, // some name
image: { type: 'jpeg', quality: 1 },
html2canvas: { scale: 2, logging: true },
jsPDF: { unit: 'pt', format: 'a4', orientation: 'l' },
pdfCallback: openPdfInNewWindow,
});
Could you please take a look and tell what's my bad?
Thanks in advance!