3D FlipBook - PDF dimension issue - width and height

m***k@idea.ie
2021-04-29
2021-05-03

Hello Sir, We have used 3dFlipBook jQuery Plugin for PDF read behaviour like Book, and we have already used all code and it working fine for us. But our requirement is that we are loading PDF dynamically based on different customer, so every PDF has different dimension, so Is there any way to control dimension of container by PDF dimensions (width and height).

We tried to set width and height in Book properties but can’t find the proper way to implement it.

So if you have any solution then its very helpful us to finalize work. Thanks in advance.

Replies

m***k@idea.ie
2021-05-03
2021-05-03

Hello Sir, Have you get chance to look the above issue, could you please check with priority basis?

a***r@3dflipbook.net
2021-05-03
2021-05-03

Hi, yes. you can do like this:

$('#container').FlipBook({
  propertiesCallback: function(props) {
    var c = $('#container');
    c.height(c.width()*props.height/(2*props.width));
    return props;
  }
});
m***k@idea.ie
2021-05-03
2021-05-03

Thanks for your comments. we will apply above code changes and update you if any further question.

Log In to leave a comment