Open Lollichkeit opened 1 year ago
Same for me
function generatePDF(data) {
const { current_user, content, name } = data;
const opt = {
filename: `${name.toLowerCase().split(' ').join('-')}.pdf`,
image: { type: 'jpeg', quality: 1 },
html2canvas: {
scale: 2,
useCORS: true // required for assets coming from URL
},
jsPDF: {
unit: 'mm',
// format: 'letter',
format: [216, 279],
// hotfixes: ['px_scaling'],
orientation: 'p'
}
};
html2pdf().from(content).set(opt).save();
}
This is my code and I don't know why the background image looks blurry:
I have several items with background images:
<div style="background-image: url('...')"></div>