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

PREVIEW_DOCUMENT_CLICK event not working on clicking layover

New Here ,
Sep 04, 2021 Sep 04, 2021

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.

 

TOPICS
PDF Embed API

Views

44

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

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