Open chrox opened 1 day ago
I've wondered this myself. From https://github.com/mozilla/pdf.js/blob/e1f9fa4ea54246bbfa974ac75720793b9ff9fd12/src/display/api.js#L117, it says it only accepts TypedArray | ArrayBuffer | Array<number> | string
. But it does support HTTP range requests if you give it a URL. Perhaps one should ask the PDJ.js devs.
Nice hint. I will try the HTTP range way.
Awesome. It works like a charm.
The EPUB parser and renderer has a reasonably low memory footprint by random accessing document file which is neat. I wander if this can be adapted to pdf-js which for now reads the whole file into a ArrayBuffer even just for parsing the document metadata.