Webviewer giving partial content 206 error and nothing displaying

WebViewer Version: 8.0.1

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No

Please give a brief summary of your issue:
(Think of this as an email subject)
On pdf loading in WebViewer I am getting 206 Partial content and nothing is getting displayed.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I am trying to load initial few pages using partial content loading to show it to users without making them wait but It is showing me 206 Partial content on webviewer UI and pdf is not getting displayed.

Here is an attachement of the issue:

In frontent I am passing the range inside customHeaders option in loadDocument function

Here is an attachement of same:

Please provide a link to a minimal sample where the issue is reproducible:
I cannot produce the link because of company policy.

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 ashutosh.rai,

You shouldn’t have to request a byte range yourself in order to load the first few pages initially. The WebViewer workers should handle this already as long as your files are linearized and your server supports range requests, as specified here: PDFTron Systems Inc. | Documentation

Hope this helps!

Best Regards,
Carlo Mendoza
Software Developer
PDFTron Systems, Inc.
www.pdftron.com

Hi @cmendoza How can I make my pdf’s linearize, I am storing these pdf’s in aws s3

Hello ashutosh.rai,

We have a guide on PDF Linearization here: What is PDF Linearization?

Best Regards,
Carlo Mendoza
Software Developer
PDFTron Systems, Inc.
www.pdftron.com

@cmendoza This problem is solved now thanks!!