Callback after file is loaded

Product: Pdftron Android Sdk

Product Version:9.2.3

Please give a brief summary of your issue: Need callback after the file is loaded in Pdfviewctrl using PdfViewCtrlTabHostFragment2
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
I need to call mPdfDoc?.fdfMerge(fdf), what is the callback after the file is loaded in the fragment ?
(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:

or a way to pass file and xfdf with config for fragment

Hi,

We have a callback for when a document is loaded called onTabDocumentLoaded(String tag). To access this callback you need to add a HostListener to your PdfViewCtrlTabHostFragment.
Please see sample Kotlin code below

mPdfViewCtrlTabHostFragment.addHostListener(object : PdfViewCtrlTabHostFragment2.TabHostListener {
            override fun onTabDocumentLoaded(tag: String?) {
                //Called when the document has loaded.
            }

        })

Please let us know if this works for you.

Best,
Eamon