PDF file loading slowly, on pdftron react application, how do I optimize it

,

My pdf files are loading slowly on the browser, I’m looking for a solution to speed up the loading speed so that users won’t have to wait for long periods waiting for it to load.

I’m creating these pdf’s on a PHP site and loading them using pdf Tron react.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hello Austin,

Welcome to the PDFTron community forum!

I have a couple questions to narrow down the issue:

  1. What browser are you using?
  2. Around how long does it take for a PDF to load?
  3. Where are you loading your PDF from?
  4. Are you using WebViewer Server? (see https://www.pdftron.com/documentation/web/guides/wv-server-deployment/)
  5. How large are the files you are loading (can you send one?)

Best Regards,
Tyler Gordon
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com

I’m using Chrome and Safari on Ipad, Sometimes it takes forever to load. I’m loading the pdf from firebase. No, I’m not using the Webviewer server. The file size is 13KB.

Hey Austin,

Are you able to send one of these files?
We have a way to optimize PDFs for faster viewing, you can read more here: https://www.pdftron.com/documentation/web/guides/viewer-optimized-pdf/
You can also pre-load the workers for PDF by following this guide: https://www.pdftron.com/documentation/web/guides/preload-worker-files/

Let me know if neither of these solutions work for you!

Best Regards,
Tyler Gordon
Web Development Support Engineer
PDFTron Systems, Inc.
www.pdftron.com

Thank you let me try it out.