Closed
Description
When I create new PDF with svg file, it doesn't work
svg file is from fabricjs
const svg = fabricCanvas.toSVG({
width: fabricCanvas.getWidth(),
height: fabricCanvas.getHeight(),
suppressPreamble: true,
})
const pdf = new jsPDF()
pdf.addSvgAsImage(svg, 20, 20, 30, 30)
pdf.save('2D_PATTERN_EXPORT.pdf')
I use Nextjs to generate PDF
Metadata
Metadata
Assignees
Labels
No labels