In bed with PDF

Default method: Open with object/embed with class fancybox-pdf
permalink: https://demo.status301.net/easy-fancybox-sandbox/pdf-embeds/#link1

<a class="fancybox-pdf" id="link1" href="https://demo.status301.net/wp-content/uploads/sites/9/2018/08/pdf_open_parameters.pdf" rel="pdf-gallery">Open with object/embed with class fancybox-pdf</a>

Alternative method 1: Open in iFrame with class fancybox-iframe
permalink: https://demo.status301.net/easy-fancybox-sandbox/pdf-embeds/#link2

<a class="nofancybox fancybox-iframe" id="link2" href="https://demo.status301.net/wp-content/uploads/sites/9/2018/08/pdf_open_parameters.pdf#toolbar=0&navpanes=0&nameddest=self&page=1&view=FitW,0&zoom=100,0,0">Open in iFrame with class fancybox-iframe</a>

Alternative method 2: Open in iFrame with Google Docs Viewer
permalink: https://demo.status301.net/easy-fancybox-sandbox/pdf-embeds/#link3

<a class="nofancybox fancybox-iframe" id="link3" href="https://docs.google.com/viewer?url=https%3A%2F%2Fdemo.status301.net%2Fwp-content%2Fuploads%2Fsites%2F9%2F2018%2F08%2Fpdf_open_parameters.pdf&embedded=true">Open in iFrame with Google Docs Viewer</a>

Permalinks

Using this code to enable permalinks:

<script type="text/javascript">
window.onload = function() {
    if(location.hash) { jQuery(location.hash).trigger('click'); }
};
</script>

## GALLERY TEST

Open with object/embed with class fancybox-pdf

Open with object/embed with class fancybox-pdf

Open with object/embed with class fancybox-pdf

2 thoughts on “In bed with PDF

  1. Hello,

    I have a problem with that !
    It worked perfectly 1 week ago, then I had a compatibility problem and now it doesn’t work anymore…
    http://www.starbasket.fr/photos-des-camps/camps-2011/la-baule-3/#143
    It keeps open the first image even if an #ID is given through the url !
    (WordPress + NextGen Gallery + Easy-fancybox)
    Do you have any idea ?
    I change the NGG effect with class fancybox, rel gallery and id fancybox-auto and add the script in the footer…

    Thanks for your help 😉

Comments are closed.