-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addSvgAsImage method does not display svg image with Angular 8 #2998
Comments
Yes, this is a known issue and was fixed with #2981. There will be a new release in the next couple of weeks. |
My svg:
const pdf = new JsPDF('l', 'mm', [98, 150]);
pdf.addFont('Roboto-Medium-normal.ttf', 'Roboto-Medium', 'normal');
pdf.setFont('Roboto-Medium');
pdf.setFontSize(14);
pdf.addSvgAsImage(svg, 1, 1, 100, 100, '', false);
pdf.save('label.pdf'); But I can't see the svg in the pdf? |
@finexfloors please test if Canvg standalone produces a good result for this SVG. |
i am facing the same issue,please can you tell how to insert this svg inside the pdf |
Same issue! |
1 similar comment
Same issue! |
There's the issue that
and when I do something like
save() method is executed earlier than doc.addImage(...) It worked for me when I put |
Hello.
I try to add a svg image into my pdf.
here is the code :
I get an error message :
Cannot read property 'fromString' of undefined
And svg image is not in the saved pdf.
Could you help me please ?
Thanks.
The text was updated successfully, but these errors were encountered: