hello guys . is there any way to convert an Annota...
# compose
a
hello guys . is there any way to convert an AnnotatedString to PDF and also apply all its spanStyle and paragraph style ? or if we can transform AnnotatedString to bitmap then PDF its also works.
z
You could try the trick done here where you just ask the compose view to draw into a pdf canvas. I’m not sure how many text style features it supports through. @Halil Ozercan any chance you know?
a
thanks for the answer . i will try that .
h
nothing more than you do 😄 InlineContent wouldn't work. If you use GraphicsLayer on top of a text composable, that usually fails.
I'm talking generally about what would go wrong when you want to transfer a composable onto a different canvas.
z
I would expect different fonts to work fine
a
thank you .