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,
AppUtils.setupPDFViewCtrl(mPdfViewCtrl!!)
initialiseToolManager()
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
setupAnnotationToolbar()
}
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: