How to get callback onDocumentLoaded() when i use PDFViewCtrl class to view pdf document?

Product:PDFTron Android SDK

Product Version:Latest

how get callback onDocumentLoaded() when i use PDFViewCtrl class to view pdf document?
Please give a brief summary of your issue:
(Think of this as an email subject)

Here, I am using PDFViewCtrl class to view pdf. I would like to do some action after document loaded.
So, Please help me what should i do to make this callback onDocumentLoaded() work.

Thank you.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi Manoj, sounds like you are looking for PDFViewCtrl.addDocumentLoadListener:
https://www.pdftron.com/api/android/javadoc/reference/com/pdftron/pdf/PDFViewCtrl.html#addDocumentLoadListener(com.pdftron.pdf.PDFViewCtrl.DocumentLoadListener)
Could you please give it a try?

Thanks.