Thread
#compose
    c

    Casey Brooks

    11 months ago
    Is anyone aware of any libraries for displaying PDFs in Compose UI (specifically based on the built-in PdfRenderer)? A quick web search is flooded with paid libraries or View-based options, so it's not easy to find anything that's natively displayed in Compose if one even exists yet.
    • I haven't tried this but it's on my todo list as we leverage PDF Tron for document rendering
    I suppose glancing at this more it's kind of cheating since it's not actually rendering in compose just offloading
    c

    Casey Brooks

    10 months ago
    Yeah I saw that, but PDFTron is a paid product. I don't think it would be terribly difficult to write my own viewer based on the built-in
    PdfRenderer
    , where it renders pages in the background and passes rendered bitmaps to Compose to display. I was jut hoping some had done this already