Streaming PDF Documents using JavaScript not working

Backend server supporting Byte range requests but front end not sending Range Header.
how to enable it.

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 @hsanghi,

There is nothing you need to do client side to enable range requests. The client will automatically do separate requests if the file supports it. Please note that your file must be linearized in order for this to be supported. You can read more about it here.

Best Regards,
Armando Bollain
Software Developer
PDFTron Systems, Inc.

Hi Armando,
As you can see response is returned in image, then why we are not getting header Range in request to send byte range, otherwise how will backend know it should send full file or bytes.

Hello @hsanghi,

Are you able to send the actual network requests from the browser (Chrome Dev tools network tab)? Please include all the requests that are being made by the viewer. If you re able to create a HAR capture that would also be ideal:

The screenshot you send shows a 206 response, that does include a content-length as well as a content-range.

Please also ensure that your file being served is linearized - this is a requirement in order for the streaming to be enabled.

Best Regards,
Armando Bollain
Software Developer
PDFTron Systems, Inc.