Hello,
It is not possible because you use native PDF viewer. It is loaded via browser's plugin and doesn't provide any API to hide the buttons.
If you show local PDF files which are hosted on your site then PDFJS viewer can be used. See "ARI Fancy Lightbox -> Settings -> Integration -> PDF Files -> Local PDF viewer" parameter. Add the following code to "Advanced -> Custom JS code" parameter to hide the buttons:
Code: |
$(document).on('afterLoad.fb', function(e, instance, current, firstRun) {
if (current.contentType === 'pdf') {
current.$iframe.off('load.pdf').on('load.pdf', function() {
current.$iframe.contents().find('.toolbarButton.print, .toolbarButton.download, .secondaryToolbarButton.rotateCw, .secondaryToolbarButton.rotateCcw').hide();
});
}
});
|
Regards,
ARI Soft