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