• Resolved drdr

    (@drdr)


    I have a PDF loading problem on a nginx server.

    I get this error in console log: pdf.worker.min.js?ver=1.7.3.8:1 Uncaught (in promise) Error: Bad end offset: 5461380, and the PDF is infinitely loading.

    Do you have any workaround for this?

    Thank you.

    • This topic was modified 3 years, 7 months ago by drdr.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author deip

    (@deip)

    Hi,

    Nginx, by default, is not aligned for Partial loading requests. Apache server is.

    In our Nginx server, we don’t serve PDF using Nginx, we let it get served by APache and the issue was resolved.

    If such is not possible, you can stop partial loading – by enabling gzip on PDF and that will cause the whole PDF to load and without such errors. this is not a good solution but better than errors. If possible serve PDF with Apache, because customizing Nginx for proper partial loading support is too much complex, even for us – we couldn’t do that so used Apache serving for PDFs.

    Best,
    Deip

    • This reply was modified 3 years, 7 months ago by deip.

    I’m also having this problem but can’t find the gzip setting – is it global or on the PDF? Thanks

    Plugin Author deip

    (@deip)

    Hi,

    gZip settings are actually done in .htaccess file from the server configuration.

    Please check the settings in your hosting settings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Loading PDF issue’ is closed to new replies.