Copy link to clipboard
Copied
My preview config is
const previewConfig = {
showDownloadPDF: false,
showPageControls: true,
embedMode: "LIGHT_BOX"
};
And I am registering for preview document click as
const eventOptions = {
listenOn: [AdobeDC.View.Enum.FilePreviewEvents.PREVIEW_DOCUMENT_CLICK],
enableFilePreviewEvents: true
}
adobeDCView.registerCallback(
AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,
function (event) {
console.log(event)
}, eventOptions
);
On opening pdf file in pdf viewer, whenever I click on layover, event is not firing and document closes.
Basically, I want to avoid closing document on layover click. I would really appreciate if I get any help to avoid closing file on layover click. I am struggling lot for it.
Copy link to clipboard
Copied
Can yuo show the full code. The event listener might not be registered.