Is it possible to partial rendering of pdf file?

Hi Logan.

I am trying to get range requests working and I believe I have set my server up to support this, however the web viewer always downloads the documents in full.

To test this I have done the following:

This is a 2GB linearized document https://s3.amazonaws.com/pdftron/downloads/pl/2gb-sample-file.pdf

Using PDF.js:
https://mozilla.github.io/pdf.js/web/viewer.html?file=https%3A%2F%2Fs3.amazonaws.com%2Fpdftron%2Fdownloads%2Fpl%2F2gb-sample-file.pdf

You can see the partial requests (status 206) flowing in. So this works as expects

Using PDFTron:
https://www.pdftron.com/webviewer/demo/
Choose File > paste in link

Again, the range requests are working as expected

Using PDF.js Express:
https://pdfjs.express/demo
Try Your Own File > paste link in

This time, no range requests are made and the viewer tries to download the whole file. And its the same on my instance of PDFjs Express

I am wondering if I need to do something special to turn this feature on - or if this is a bug?

Thanks, Luke

1 Like