Has anyone tried to render compose ui into pdf on ...
# compose
u
Has anyone tried to render compose ui into pdf on server (invoice generator) ? I know android has pdf api to draw from
Canvas
, but what would I use on JVM backend?
c
I haven't used this but I've been meaning to try it https://github.com/chrisjenx/kinvoicing
h
Skip Compose for this, use HTML/CSS templates with OpenHTMLtoPDF or Typst or JasperReports
👍🏻 1
Or https://github.com/chrisjenx/compose2pdf or what the guy above me said
c
you actually can render a compose function to ByteArray using ImageComposeScene on jvm! (though the other options above are probably better suited)
u
@Christopher Mederos afaik that would make it rasterized, i.e image in pdf, not vector
compose2pdf seems to be the one, great!
e
better would be underlying support in skiko (as skia already supports pdf output) but https://youtrack.jetbrains.com/issue/SKIKO-1017 hasn't been worked on
👀 1