Download document in local storage

Hi Emallon

I tried this in kotlin.
Ex-
val dFile=File(getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)?.getPath() + “/” + cFile.nameWithoutExtension + “.” + cFile.extension)

FileUtils.copyFile(cFile, dFile)
mPdfViewCtrlTabHostFragment.currentPdfViewCtrlFragment.toolManager.annotManager?.exportToFile(dFile)

It creates a new file on the target path, but annotation is not exporting.

Hi,

Here is an sample project with exportToFile working:

With this I am able to export my current file with annotations to a different file (asdf.pdf) in my downloads folder. Is it possible for you to provide a working sample project that shows the issue with exportToFile not behaving as you expected?

Thanks,
Andrew

Hi Andrew

Thanks for your response.

There are many projects, Could you please tell me in which project I can get export-file-test sample.

Thanks
Pawan

Hi,

The changes are contained within the CustomUI project folder. Here is the commit changes I made:

Thanks,
Andrew