Skip to main content
Participant
September 4, 2021
Question

PREVIEW_DOCUMENT_CLICK event not working on clicking layover

  • September 4, 2021
  • 1 reply
  • 334 views

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.

 

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
September 9, 2021

Can yuo show the full code. The event listener might not be registered.