Is the HttpPartRetriever supported in PDFJS Express for regular PDF’s?
Also, we currently use vanilla PDFJS and grab ranges of PDF’s via a custom PDFDataRangeTransport (which can be provided to PDFJS’s getDocument function). I don’t support this is available in PDFJS Express too?
HttpPartRetriever was intended to be used with XOD files so unfortunately, it will not work with PDF files and PDF.js Express. If you want to use this functionality the best option is to use PDFTron.
It is unfortunate as it was looking like a good solution for us.
I think the express documentation needs to be more clear and remove the ability to explore these functions - it has wasted a bit of time.
PDF.js Express does support range requests by default (only for PDFs) and will use them whenever available. There is no additional configuration required on the client as it is enabled by default. However, the PDF file must be linearized and your file server must be set up to support range requests as well.
That being said, any functionality beyond what is being provided will be tricky as this is mostly handled by the internals of the core PDF.js library. If you absolutely require these more advanced use cases (streaming encrypted files etc), then PDFTron is your best bet.