Replies: 1 comment 1 reply
-
This library does not provide the ability to generate (FYI) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Somewhat related to #908 - I can turn my strings into GraphicsPath, so I hoped for a way to construct SvgPath from that.
Actual problem: PDF files produced with Svg.Skia are way too big, single page with some vector graphics and some short texts is about 2MB which is unacceptable for my client's use case (And it can get worse considering produced documents will be in different languages including Chinese).
If I get down to available Skia PDF options - they are only about raster elements, nothing of help there.
Relevant issue: mono/SkiaSharp#848
Workaround with a custom Skia build to expose Font shrinking options seems to complicated - I have another option that will cause less trouble - skip SVG and Skia completely and use a different library to generate PDF from my data, albeit it has different downsides.
Workaround with manual font preparation - on a fence whether I should explore it further - not happy about it either.
So, naturally, I started to look how can I skip dealing with fonts all together.
In my case, produced documents don't have to retain machine-readable/searchable text, so paths should suffice.
Is there anything useful for my problem already?
Does it look convincing to provide such feature? (And where it should belong?)
If no shortcuts are available, then I should probably go ahead and build my own converter from GraphicsPath to SvgPath.
Are there different path representations that might be more convenient than GraphicsPath for this task?
Beta Was this translation helpful? Give feedback.
All reactions