'PDF generator, Android Jetpack Compose
everyone, I need to implement a PDF generator in my android app with jetpack compose. Previously I have done it using Itext library and xml. Wiat library or Solution would you suggest fot JC?
Solution 1:[1]
Sorry not a expert on Jetpack compose but in theory JC's ComposeView is a standard Android View, thus you can create a PDF of that using the inbuilt PDF generation using PdfDocument class
I use this successfully for normal Android views, though you have careful of view size if you want to conform to standard paper sizes (1 pixel is 1 point), so you might want to control the view's size independent of the devices screen size (I don't how to do that in JC but should be the same as any standard android view)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andrew |
