Closed helmysaeed closed 2 years ago
I'm sorry, I don't understand what do you want to do
Probably something like https://docs.oracle.com/javase/tutorial/2d/printing/index.html
w
Probably something like https://docs.oracle.com/javase/tutorial/2d/printing/index.html
it does not support jetpack compose like canvas
I'm sorry, I don't understand what do you want to do
I need to print Invoice created by jetpack compose canvas or print lazyColumn directly like when print canvas in android
My comment was not to suggest that Java2D printing somehow magically works for a completely different toolkit that is Compose. It was to clarify the request.
Probably given the multi-platform aspirations of this framework, the simplest would be to provide a functionality to export canvas content to a PDF and have the underlying platform handle the PDF-to-print pipeline.
My comment was not to suggest that Java2D printing somehow magically works for a completely different toolkit that is Compose. It was to clarify the request.
Probably given the multi-platform aspirations of this framework, the simplest would be to provide a functionality to export canvas content to a PDF and have the underlying platform handle the PDF-to-print pipeline.
@kirill-grouchnikov thank you
Currently there is no such possibility. What probably could be tried is the following:
Steps 1-2 are described in https://github.com/JetBrains/compose-jb/issues/368
Couldn't ComposeScene
be used? With it you can draw to canvas instead of window.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
how can print jetpack compose canvas in windows desktop app or print any jetpack UI like LazyColumn