Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PREVIEW_DOCUMENT_CLICK event not working on clicking layover

New Here ,
Sep 04, 2021 Sep 04, 2021

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.

 

TOPICS
PDF Embed API
277
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2021 Sep 09, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources