Skip to main content
Participant
April 11, 2024
Question

Optimisation for Preloading Required JS in Adobe PDF Viewer

  • April 11, 2024
  • 1 reply
  • 312 views

I'm seeking assistance with optimizing the loading time for viewing PDF files in my application. Currently, when I receive a response from an API, containing file data, I convert it into a BLOB and pass it to the Adobe URL. However, this process takes approximately 5 to 6 seconds to load the PDF for the first time. I'm exploring potential solutions to improve this loading time, such as preloading the required JavaScript files. My application utilizes the embedMode 'IN_LINE'. Any insights or suggestions on how to achieve faster PDF viewing upon API response would be greatly appreciated.

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
April 15, 2024

Embed API will "stream" a linearized PDF and display the first page as the rest of the file is loading except for IN_LINE. With IN_LINE mode, all pages nust be available, meaning the entire PDF must be loaded so that an appropriately sized iframe can be created for the PDF to paint into.