简体   繁体   中英

In Pdf.js Library , which file calls the read_pdf function to fetch the data of pdf from server to client end?

在Pdf.js库中,哪个文件调用read_pdf函数从服务器到客户端获取pdf数据?

there is no read_pdf function in http://github.com/mozilla/pdf.js library

ya but from where does the library calls to fetch the data of pdf from server to client

Are you just fishing for an answer how PDF.js loads data? If it is, then PDF.js uses XHR in the worker code (pdf.worker.js) to fetch binary PDF data as arraybuffer. It might use several HTTP (range) requests the get this data if server (script) signals that it can support range requests.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM