Table of Contents using new custom skia build #808
-
So the old code used to work like this. It says that .Canvas() is obsolete and I should use .Svg() but I have no idea how.
I tried something like this, it renders kinda ugly, still needs some math to adjust for text length and page number (which is also not working) and quantity of dots. There must be a better way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can use this SVG property to achieve the effect: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray Notice: I haven't tested if Skia supports it, please let me know when you find out. As far as I see, it does exist in the Skia code. In the future versions of QuestPDF, I would like to revisit introducing certain graphics capabilities, e.g. dashed lines or rounded borders. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Do you think this is more performatic than the old method with SkiaSharpRasterized extension ? |
Beta Was this translation helpful? Give feedback.
I was able to remove the ugly line by adding the
fill="none"
property.