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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

PDF Lightbox // Full page by default
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 12
TOPIC: PDF Lightbox // Full page by default
#64660
PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 0
Hello,

I'm using your plugin which is great for what I'm doing.
I just have a little problem, displaying the PDF. I use the PDFJS viewer.
When I click on a link, it opens the PDF in the viewer in the light box but using by default "auto zoom"
I would like to display my PDF by default to "full page".

Do you now how to change that ?

Thank you
The administrator has disabled public write access.
 
#64662
Re:PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 748
Hello,

Could you provide an image where we can see what you want to achieve?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#64666
Re:PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 0
Hello,

Thanks for your answer.
See the 2 files attached : how it is now ; and how I would like the Lightbox to be

Sorry for my English, it is not great, and especially for the vocabulary, as "panel of thumbnails", "auto zoom", … Im not sure how to call it in English

Thanks for your help
Last Edit: 2019/03/03 13:03 By camillesable.
The administrator has disabled public write access.
 
#64667
Re:PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 0
In this second message, the 2nd image file : how I would like the Lightbox to be
(I couldn't add two images files in one reply)
The administrator has disabled public write access.
 
#64670
Re:PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 748
If you use PRO version of the plugin then it can be achieved. For this open "ARI Fancy Lightbox -> Settings -> Advanced" page and populate "Custom JS code" parameter with the following code:

Code:


$(document).on('afterLoad.fb', function(e, instance, current, firstRun) {
  if (current.contentType === 'pdf') {
    current.$iframe.off('load.pdf').on('load.pdf', function() {
       var $doc = current.$iframe.contents();
       $doc.find('#sidebarToggle').click();
       $doc.find('#scaleSelect').val('page-width');
    });
  }
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#64687
Re:PDF Lightbox // Full page by default 5 Years, 2 Months ago Karma: 0
ok, I see.
I use the free version. I tried to put your code in the Custom JS code. It doesn't work. Is it just because I don"t have the PRO version ?
If I understand well, I can custom the JS only if I the the PRO version ?

thank you
The administrator has disabled public write access.
 
Go to topPage: 12