Hi Radaee, there is such a question. When you exit the PDF of a large document (180 mb), the screen is locked, locked UI stream, a black screen appears and after 10 seconds, if you do not click, then everything closes successfully. Tell me what could be the problem or where to look for it? thanks
p.s. Clarification: This only happens when a new annotation has been added to the PDF (it feels like it is re-saving every page)
Your library is integrated into our project.
The problem arises when an annotation is written or deleted on the pdf, probably it goes through / re-saves each page, tell me where is this happening? Thanks.
Document.Save() only update created and modified objects, this shall not be very long time.
only Document.SaveAs() or Document.ImportPage() to other Document will rewrite all objects.
you can use following java codes to print time span during exiting:
long time1 = SystemClock.elapsedRealtime();
//any exiting codes.
int delta = (int)(SystemClock.elapsedRealtime() - time1);
Log.e("Time", String.format("%d", delta));