You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that projects which are using this library cannot open file descriptors which point to an in memory file (named pipes).
After some investigation, it seems that there is a check in the nativeOpenDocument method which verifies the file descriptor by checking the file size. If it it zero, then the method throws an exception.
However a zero file length is valid for in memory files and their file descriptors.
It would be nice if these descriptors were supported.
Seems that projects which are using this library cannot open file descriptors which point to an in memory file (named pipes).
After some investigation, it seems that there is a check in the nativeOpenDocument method which verifies the file descriptor by checking the file size. If it it zero, then the method throws an exception.
However a zero file length is valid for in memory files and their file descriptors.
It would be nice if these descriptors were supported.
https://github.com/barteksc/PdfiumAndroid/blob/master/src/main/jni/src/mainJNILib.cpp#L183
The text was updated successfully, but these errors were encountered: