Reputation: 334
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.
Upvotes: 0
Views: 1022
Reputation: 10222
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
Upvotes: 1