Viewing 8 replies - 1 through 8 (of 8 total)
  • Fancybox does not display PDF files, it only embeds them in a light box presentation. The actual rendering needs a browser plugin like Adobe Acrobat or Chrome PDF Viewer.

    Not sure how this compression effect occurs though… Can you share a link?

    Thread Starter EbbeLas

    (@ebbelas)

    In this link you will find a screendump from an Ipad wich shows the problem of showing pdf-files on Ipads: . you may eventualley experience the actual problem by klicking “?rsskrift 1998”
    Easy Fancy Box is used to present pdf-files on this site.
    On this site Easy Fancy Box is not used to present pdf-files.

    Thread Starter EbbeLas

    (@ebbelas)

    Excuse me, I missed the links. They are here.
    In this link you will find a screendump from an Ipad wich shows the problem of showing pdf-files on Ipads: https://www.stenark.dk/udgivelser/. you may eventualley experience the actual problem by klicking “?rsskrift 1998”
    Easy Fancy Box is used to present pdf-files on this site.
    On this site Easy Fancy Box is not used to present pdf-files: https://www.sk-dilettant.dk/dilettantprogram-2014/

    Like I said, it’s not FancyBox that does the actual PDF rendering. That always needs a browser plugin. Apparently, on the iPad it does this weird smushing effect. Maybe to make one page fit inside the object viewport?

    I don’t have an iPad to test this with… Try each of the 3 method links on https://vks11510.ip-37-59-121.eu/easy-fancybox-sandbox/pdf-embeds/ with an iPad and let me know the difference.

    Thread Starter EbbeLas

    (@ebbelas)

    Well I think you are right. But I do not deal with Ipads (have not got one myself). I can not read the link https://vks11510.ip-37-59-121.eu/easy-fancybox-sandbox/pdf-embeds/ – my virus scanner (Avast) excludes it.

    Thread Starter EbbeLas

    (@ebbelas)

    your sandbox-link is still excluded by Avast.
    Now Easy Fancy Box is not used to present pdf-files, only pictures on the site: https://www.stenark.dk. Thanks for your interest.

    Basically, on that page there are two alternative methods shown of how you can embed a PDF in a lightbox. First, enable the iFrame option on Settings > Media. Then try one or both of these examples:

    1.

    <a class="nofancybox fancybox-iframe" href="https://downloads.free-jazz.net/files/2009/05/WoodenGun-EBookSample.pdf#toolbar=0&navpanes=0&nameddest=self&page=1&view=FitW,0&zoom=100,0,0">Open in iFrame with class fancybox-iframe</a>

    2.

    <a class="nofancybox fancybox-iframe" href="https://docs.google.com/viewer?url=http%3A%2F%2Fwww.adobe.com%2Fdevnet%2Facrobat%2Fpdfs%2Fpdf_open_parameters.pdf&embedded=true">Open in iFrame with Google Docs Viewer</a>

    Maybe that will work better on iPad?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘pdf-files not displayed correctly’ is closed to new replies.