When dealing with files, Android usually deals in Uri's not File handles. Sharing/Sending files from other apps, opening through file manager or through Storage Access Framework. All of them deal with android.net.Uri's . This means downstream app has to copy the file into cache first and only then it's possible to do obtain java.io.File handle, which is needed for the conversion. Would be cool to get the output as text stream too, because that would prevent an extra file copy.
This needs upstream pdf2htmlEX patching.
When dealing with files, Android usually deals in Uri's not File handles. Sharing/Sending files from other apps, opening through file manager or through Storage Access Framework. All of them deal with
android.net.Uri's . This means downstream app has to copy the file into cache first and only then it's possible to do obtainjava.io.Filehandle, which is needed for the conversion. Would be cool to get the output as text stream too, because that would prevent an extra file copy.This needs upstream pdf2htmlEX patching.