Deleting multiple annotations but PDFViewCtrl doesn't show change until re-opening the document.

16 views
Skip to first unread message

Ryan

unread,
Apr 25, 2016, 2:38:11 PM4/25/16
to PDFTron PDFNet SDK
Question:

We have implemented our own custom activity for deletion of multiple highlights/notes. But once we delete these from the activity the pdf doesn't reflect the changes immediately. Currently for the changes to take effect we have to re-open the book.

Answer:

The PDFViewCtrl class has an update(boolean) function that can be used to redraw everything, without having to close the document.

If you are using CompleteReaderPDFViewCtrl class, then this class extends PDFViewCtrl, so same applies.

For example see TabbedVierwerFragment.java file and search for mPdfViewCtrl.update(true);


Reply all
Reply to author
Forward
0 new messages