I am using this PDF Library in my application at the latest version.
I have a PDFView
object declared in this way:
PDFView pdfView = (PDFView) findViewById(R.id.pdfView);
And I would like to check whether if it is currently displaying/containing a PDF.
I did this:
if(pdfView.getPageCount() == 0){
...
}
which works, but I'd like something like this line in the library's source code. Sadly we cannot access pdfFile
from outside, nor is given to us something like isEmpty()
or isNull()
.
Is there a way to see if the inner pdf is null or not? Thank you.