How to open pdf in PdfRenderer in andorid 5.0 from internal file path data/data/com.xyz/file.pdf

362 Views Asked by At

I want to use PdfRenderer to get pdf first page Bitmap in android 5.0 and above .

But i am unable to get ParcelFileDescriptor of internal file in android .

any one known how to convert FileInputStream to ParcelFileDescriptor

1

There are 1 best solutions below

0
On BEST ANSWER

To get a ParcelFileDescriptor on a File, call the static open() method on ParcelFileDescriptor.