Allie
Allie

Reputation: 334

Convert Excel to PDF in Android using Kotlin

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

Answers (2)

Andrew
Andrew

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

Fung
Fung

Reputation: 969

You could use PDF Library like PDFBox

Upvotes: 0

Related Questions