I thought i fixed it, but the problem is still happening. Setcache returns false and I cannot save a bitmap annotation. Adding the annotation with addbitmapannotation returns true, but the annotation count is 0.
I do not share files. I open multiple documents in a view pager. The only sharing is Global. Each has its own PDFReader and Document, but i have found that sometimes calling setcache would fail, but if i closed and reopened the app, setcache would succeed. I always invoke document.close when the view pager destroys the fragment the pdfreader is in.