Home > Software design >  Convert Excel to PDF in Android using Kotlin
Convert Excel to PDF in Android using Kotlin

Time:04-21

Is there any way to convert Excel file into PDF in Android Kotlin? I came across a few solution but they are all paid versions/require licenses.

I have large recycler view(report of between 1000 to 5000 records) which I need to save as Excel and PDF.

Thanks.

CodePudding user response:

You could use PDF Library like PDFBox

CodePudding user response:

You could write your data to a CSV file with Apache Commons CSV

and generate a pdf a page at a time by drawing a recyclerview/tablelayout in to a PDF with the Android PDFdocument class

  • Related