3D FlipBook - New tab PDF Link area

d***t@efil.fr
2020-08-26
2020-08-26

Hi, I'm trying the demo of the JQuery version and everyhting is fine for my project. Except i have a link area in my PDF file, and this link is opened in a new tab. I don't want this. It's not possible to specify the target in the PDF, so i have found pdfLinks: {}, is it the solution ? The doc is not very clear on this params. I realy need to have the answer before buying it.

Thanks

Replies

a***r@3dflipbook.net
2020-08-26
2020-08-26

hi, just use your function that returns true:

var options={
...
      pdfLinks: {
        handler: function(type, destination) { // type: 'internal' (destination - page number), 'external' (destination - url)
          return true; // true - prevent default handler, false - call default handler
        }
      },
...
};

https://3dflipbook.net/documentation#general-approach

d***t@efil.fr
2020-08-27
2020-09-03

Ok, but i don't understand how to use it :

pdfLinks: {

        handler: function(type, destination) {

            type: 'external'  // that way or type = 'external'

          return true; // i don't understand what this do, it's equivalent to the javascript preventDefault method ?

        }

      },
a***r@3dflipbook.net
2020-08-27
2020-08-27

this let you define your own click link handler. when link is clicked this function is called. if you return true - plugin wont use its default click link handler.

d***t@efil.fr
2020-09-03
2020-09-03

Sorry, there is something i must make the wrong way, i'm trying this :

handler: function (type, destination) {
        console.log(type)
        return true;
 }

And there is nothing in console when i click my links, i have try with return false, same result.

a***r@3dflipbook.net
2020-09-03
2020-09-03

write a link to your page.

d***t@efil.fr
2020-09-04
2020-09-04

https://brgm-rad.efil.fr/, the link aera is on the first page.

Log In to leave a comment