• pcantos

    (@pcantos)


    We have continuously been receiving a “bad end offset” error code when trying to embed PDFs onto our website.

    We have cleared the cache, disabled all plug-ins and then enabled one-by-one to try and isolate a conflict with no success. We have uploaded various PDFs and a common factor seems to be that PDFs where designs where created in InDesign produce this error code, while PDFs exported from Illustrator seem to function just fine.

    We have tested out various file sizes, reducing PDF size with no success. We even tried to open the PDF exported from Indesign, reopen in Illustrator, and export from Illustrator, but it still produced an error code.

    Our site is hosted through Pantheon and my technical knowledge is limited to push plugins from dev > test > live and then managing content through WordPress. Any insight would be greatly appreciate.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DearHive

    (@dearhive)

    Hi,

    We checked the page and do not see any flipbook or PDF that we could use to check the issue.
    Could you point us to the flipbook or the PDF file for us to investigate?

    Best Regards,
    DearHive

    Thread Starter pcantos

    (@pcantos)

    Hello @dearhive ,

    Sorry about that. Looks like it was removed by a colleague. I’ve readded just above the footer.

    Thank you

    This is the PDF it should load: https://seis.ucla.edu/wp-content/uploads/2024/11/EDISMag-Fall24-Final-ReducedSize-PDF.pdf

    • This reply was modified 6 days, 20 hours ago by pcantos.
    Plugin Author DearHive

    (@dearhive)

    Hi,

    We tried hosting your PDF in our site. It is working fine https://wordpress.dearflip.com/edismag-fall24-final-reducedsize-pdf/

    We also tested in Firefox, flipbook is working fine in your site too.

    The problem is when the file in hosted in your environment and viewed with chrome.

    We will do more research and get back to you in few days.
    Best Regards,
    DearHive

    Thread Starter pcantos

    (@pcantos)

    Hi @dearhive,

    FYI, that we changed the page where the PDF is embedded to here: https://seis.ucla.edu/ucla-edis-magazine-archive/

    We the previous page was a destination for an email campaign launching today and so, we didn’t want an error code there.

    Thank you

    Thread Starter pcantos

    (@pcantos)

    Hi @dearhive,

    Checking to see if anything was found in your extended research?

    Thank you

    Plugin Author DearHive

    (@dearhive)

    Hi @pcantos ,

    So far we have found that it is due to cache issue of partial content. PDF.js team says this is chrome bug – and they have a workaround to disable partial content(loading). We have a solution here which disable cache so that partial loading works but not the cache:
    https://wordpress.dearflip.com/docs/pdf-not-loading/#1-toc-title

    We would love to have a solution without disabling the partial content. We will keep looking but it looks like using nginx to serve PDF has this issue. Apache is better at partial content, so if nginx is just a proxy to Apache, we suggest not to proxy for pdf and let Apache serve PDFs.

    This issue doesn’t occur when the chrome browser fetches the PDF for the first time(try in incognito mode it works for first-time). First time it works as intended. Second time when browser tries to use the old cache of the partial content, it mismatches with what the nginx server responds and a bad offset is detected.

    Best Regards,
    DearHive

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.