pdf.js/external/streams
Mukul Mishra bbd9968f76 Added sendWithStream method in MessageHandler.
Adds functionality to accept Queueing Strategy in
sendWithStream method. Using Queueing Strategy we
can control the data that is enqueued into the sink,
and hence regulated the flow of chunks from worker
to main thread.

Adds capability in pull and cancel methods.
Adds ready and desiredSize property in streamSink.

Adds unit test for ReadableStream and sendWithStream.
2017-06-07 21:05:27 +05:30
..
LICENSE.md Adds streams-lib polyfill and exports ReadableStream from shared/util. 2017-05-20 00:26:34 +05:30
README.md Adds streams-lib polyfill and exports ReadableStream from shared/util. 2017-05-20 00:26:34 +05:30
streams-lib.js Added sendWithStream method in MessageHandler. 2017-06-07 21:05:27 +05:30

Streams API polyfill for PDF.js

This folder contains streams-lib.js file that works as a polyfill for Streams API in PDF.js project.

Steps to create streams-lib.js file

  • Fork Streams API reference implementation.
  • Bundle and port to es5 ref-implementation files using webpack to create commonjs module.