Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

PDFs loading differently between development and production server while using pdf.js - please help.

  • 2 回覆
  • 3 有這個問題
  • 1 次檢視
  • 最近回覆由 ardnirum

more options

Hi

We are using pdf.js in our application to display thousands of PDFs.

In the development server (running on CentOS), when we access PDFs, the viewer shows the first page, while the rest of the pages load/download.

Whereas, in the staging & production servers(RedHat OS), the viewer waits for all the pages to download before showing the first page.

What could be the reason? I am not able to believe that it would be OS based.

Please help.

Thanks Gopal

Hi We are using pdf.js in our application to display thousands of PDFs. In the development server (running on CentOS), when we access PDFs, the viewer shows the first page, while the rest of the pages load/download. Whereas, in the staging & production servers(RedHat OS), the viewer waits for all the pages to download before showing the first page. What could be the reason? I am not able to believe that it would be OS based. Please help. Thanks Gopal

所有回覆 (2)

more options

Same version of PDF.js on both? v 1.2.109 is the current "Stable" version Beyond that see the PDF.js Project page: https://mozilla.github.io/pdf.js/

more options

Sorry, I dont have the version numbers with me right now. But i am very sure that the same version is running on both the servers. I have compared the source and there are no changes. Hope this helps. Thanks for looking into it.

regards Gopal