Pdf embed api - How can to catch event before open link?

Enthusiast ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

I had try registerCallback , but it only can catch event after open link:

adobeDCView.registerCallback(
/* Type of call back */
AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,
/* call back function */
function(event) {
switch(event.type) {
case "HYPERLINK_OPEN":
console.log("Clicked on hyperlink "+event.data.fileName);
console.log(event);
break;
}
},
{
enablePDFAnalytics: true,
}
);
});

 

How can to catch event before open link?

TOPICS
PDF Embed API

Views

34

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
no replies

Have something to add?

Join the conversation
Resources