IPrinterScriptableSequentialStream interface

The IPrinterScriptableSequentialStream interface is an ISequentialStream-like interface that works in JavaScript. Instead of reading and writing byte arrays, it reads and writes JavaScript arrays of bytes, which are values between 0 and 255.

Methods

The IPrinterScriptableSequentialStream interface has these methods.

Method Description
IPrinterScriptableSequentialStream::Read The Read method reads bytes from the stream and returns them as a JavaScript array.
IPrinterScriptableSequentialStream::Write The Write method writes the provided JavaScript array to the stream and returns the number of bytes written.

Requirements

   
Target Platform Windows
Header printerextension.h