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'
   }
   });
   }
c***n@linq-systems.nl
2020-05-07
2020-05-07

Hi !

Do you think you can help ? I would like to have a single page view by default ... your code provides a solution for this. Where do i add this code ?

Thanks for your reply.

Regards Coen

Log In to leave a comment