-
Notifications
You must be signed in to change notification settings - Fork 104
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
Unsupported features/Known issues #82
Comments
To me it would make sense to put the feature "Images with urls that are not inline data urls" in an issue |
The addImage plugin also basically only supports data urls. I just saw that the original jsPDF made some changes to support other urls via synchronous requests. Synchronous requests are deprecated and should usually not be used, though. As far as I can see there is also no option to preload images. So we can support non-data-urls only when we make the API of svg2pdf asynchronous. This should be done together with a 2.0 release. |
I tried rounded corner rects (rx attribute), but the pdf export ignore this attribute. |
As far as I know, the |
Yes you are right! This was showing good in the browser but not in the pdf |
Actually, your SVG is right. MDN states
So omitting one of the values is correct. We should fix this (#126). |
Hi again. Wanted to know if the text style attribute 'font-weight' is implemented. |
Interesting! It works by using 'bold', 'normal' but not with numeric value. Anyway, would like to add a 'light' type with the existing fonts. |
Yes. This is mainly because jsPDF only supports 'normal', 'bold', etc.. With custom fonts and some tricking, we might be able to support other font styles, though. When adding a font to jsPDF, you can also specify the font-style, which in theory, could also be a numeric value. Needs to be tested though. |
- when rx===ry===0 write a regular rect instead of a rounded rect with 0 radius fixes #82
Ah, accidentally copied the wrong issue number in #140. |
Unfortunately does not support filter elements, my svg has Gaussian blur and shadows, is there any way to work properly in pdf again? |
AFAIK, PDF has no native feature like SVG filters. A workaround might be to replace all elements with filters in the SVG with |
Hi, there is any way to add multiple svgs instead one? |
Sure, just make more calls to |
Hi @yGuy, thanks for your quick answer. I already tried but with more than one is not rendered in pdf. |
Did you confirm the SVGs are in fact not there? Are they maybe just occluding each other? Please check if maybe something else is going wrong... maybe not all calls to |
Hi @HackbrettXXX, i will analyse what might be going through and if necessary i will open an issue with a runnable example. Thanks boths for your help. |
Hi, please tell me why |
@xurenda You are right, PDF supports masking and it would probably be possible to add support for the feature. It just hasn't been implemented so far, because it's used rather rarely. We would happily merge and assist with a pull request, though. Although we need to add the masking feature to jsPDF, as well, first. |
@HackbrettXXX Okay, thank you for your reply, I need the |
HI! Did you have a plan to support CMYK colors as jsPDF supports it? |
I'd be very grateful for support for |
Here is a list of known issues/unsupported features.
foreignObject
supportpath
withinclipPath
textPath
attributeglyph
elementsmask
andfilter
elementspx
use
elements with non-local IRI referencesThe text was updated successfully, but these errors were encountered: