PdfiumAndroid icon indicating copy to clipboard operation
PdfiumAndroid copied to clipboard

how to give path to pdf file which is present in assets folder ?

Open iamkdblue opened this issue 7 years ago • 2 comments

 try {
            fd = ParcelFileDescriptor.open(new File("???"),MODE_READ_WRITE);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

iamkdblue avatar Apr 30 '18 10:04 iamkdblue

Maybe PdfiumAndroid not support asset,I found below code in AndroidPdfViewer, AndroidPdfViewer copy asset pdf to cache dir image image

oncealong avatar Feb 28 '20 11:02 oncealong

@oncealong thanks for the answer.

shaifu avatar Feb 02 '24 10:02 shaifu