How can i config using ViewerConfig when i use PDFViewCtrl to view PDF in my App?

Product:PDFTron Android SDK

Product Version:Latest

Please give a brief summary of your issue:How can i config using ViewerConfig when i use PDFViewCtrl to view PDF in my App?
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
I want to customise LongPressDisableQuickMenu, onAnnotationSelection Disable Quick menu.
I don’t want to show quickMenu when particular annotation selected & I want to some action when i do long press in document instead showing quickMenu.
How can i use ViewerConfig if i use PDFViewCtrl to view PDF in my App?

I have used like this,

viewFromResource(R.raw.surfacingmarkup, “sample”)

fun viewFromResource(resourceId: Int, fileName: String) {
val file = Utils.copyResourceToLocal(activity, resourceId, fileName, “.pdf”)
mPdfDoc = PDFDoc(file.absolutePath)
mPdfViewCtrl?.doc = mPdfDoc
mPdfViewCtrl?.pagePresentationMode = PDFViewCtrl.PagePresentationMode.SINGLE
Thanks in Advance.
(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:



The ViewerConfig api can only be used when using the fragment viewer.

If you want to handle the quick menu popup you can add a QuickMenuListener to your ToolManager and implement onShowQuickMenu. This will allow you to control what happens when the quick menu is about to show.

Please let us know if this solution works for you.

Best Regards,