0
PREVIEW_DOCUMENT_CLICK event not working on clicking layover
New Here
,
/t5/acrobat-services-api-discussions/preview-document-click-event-not-working-on-clicking-layover/td-p/12362852
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-services-api-discussions/preview-document-click-event-not-working-on-clicking-layover/m-p/12373303#M2648
Sep 09, 2021
Sep 09, 2021
Copy link to clipboard
Copied
Can yuo show the full code. The event listener might not be registered.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

