Christian Babsek
06/24/2023, 9:23 PMmohamed rejeb
06/25/2023, 10:59 AMChristian Babsek
06/25/2023, 3:31 PMmohamed rejeb
06/25/2023, 3:54 PMimplementation("org.apache.pdfbox:pdfbox:2.0.27")
You can render pdf files as images and display those images in your compose code.
You can return a Flow<ImageBitmap>
instead of a List<ImageBitmap>
so you can display the images directly when it's ready instead of waiting for all images.
Also if you are going to deal with large pdf files you need to render only the pages that you want and that you are displaying in the screen because this rendering is not cheap, you may also need to save the rendered images into a temp files to avoid storing that images in memory.Christian Babsek
06/25/2023, 4:13 PMmohamed rejeb
06/25/2023, 4:28 PMmikehearn
06/26/2023, 7:33 AMmikehearn
06/26/2023, 7:33 AM