3D FlipBook - Single page view by default

T***r@gmail.com
2020-03-04
2020-03-06

How do i set the pdf to automatically display in single page view? Thanks

Replies

T***r@gmail.com
2020-03-06
2020-03-06

Figured it out, second line should be

controlsProps: { actions: {cmdSinglePage: {active: true}} },

Dont forget the comma at the end!

T***r@gmail.com
2020-03-06
2020-03-06

{

  $('#container').FlipBook({

  controlsProps: { actions: {cmdSinglePage: {active: true}} },

     pdf: 'public/books/pdf/350_upper.pdf',

    propertiesCallback: function(props) {

       props.page.depth /= 2.5;
       props.cover.padding = 0.002;

       return props;
     },
     template: {
       html: 'templates/default-book-view.html',
       styles:

      [
     'css/short-black-book-view.css'
       ],
       links: [
        {
           rel: 'stylesheet',
           href: 'css/font-awesome.min.css'
         }
       ],
       script: 'js/default-book-view.js'
   }
   });
   }
Log In to leave a comment