getFileUri

open fun getFileUri(@NonNull context: Context, @NonNull pdfDocument: PdfDocument): Uri

Extracts asset into a file and returns the file Uri. It's recommended that you perform this action asynchronously. Also, once the temporary file is extracted, you are required to perform the cleanup.

Parameters

context

Context of the calling component, used to access the filesystem.

pdfDocument

Document containing the asset.