Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

viewing PDF pages side-by-side in lightbox
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: viewing PDF pages side-by-side in lightbox
#72658
viewing PDF pages side-by-side in lightbox 1 Month, 1 Week ago Karma: 0
Hi,

I saw an old post saying in a previous version the option to see PDFs two across is now available. Can you guide me through the process? We're running the most current version of the plugin and of WordPress, on Gutenberg. I've been able to get it to add the PDFs, but not any way to format it or alter the display once it's added.

Thanks so much!
The administrator has disabled public write access.
 
#72666
Re:viewing PDF pages side-by-side in lightbox 1 Month, 1 Week ago Karma: 763
Hello,

If you use PDFJS viewer then you can choose view mode:




Regards,
ARI Soft
The administrator has disabled public write access.
 
#72673
Re:viewing PDF pages side-by-side in lightbox 1 Month ago Karma: 0
Thank you so much! My apologies -- I realize that, but is there a way to set the default behavior when the lightbox pops up so it automatically comes up with two pages?

Thanks!
The administrator has disabled public write access.
 
#72681
Re:viewing PDF pages side-by-side in lightbox 1 Month ago Karma: 763
You can try to add the following script to "ARI Fancy Lightbox -> Settings -> Advanced -> JS code" parameter:

Code:


$(document).on('afterLoad.fb', function(e, instance, current, firstRun) {
  if (current.contentType === 'pdf') {
    current.$iframe.off('load.pdf').on('load.pdf', function() {
      var pdfApp = current.$iframe.get(0).contentWindow.PDFViewerApplication;
      pdfApp.initializedPromise.then(function() {
        setTimeout(function() {
          pdfApp.pdfViewer.spreadMode= 1;
        }, 1000);
      });
    });
  }
});



We checked it for PRO version.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#72682
Re:viewing PDF pages side-by-side in lightbox 1 Month ago Karma: 0
This was so helpful, thank you! My last question is to see if there's a way to set the default to 'page fit' and use horizontal scrolling along with the side-by-side pages.

Sorry if there's an easy spot to find these variables!

Thanks again for all your help.
The administrator has disabled public write access.
 
Go to topPage: 1