ImageGear Professional v18.2 > API Reference Guide > PDF Component API Reference > PDF Component Callback Functions Reference > LPFNIG_PDF_STREAM_PROC |
Callback for use by IG_PDF_stream_read_CB_register and IG_PDF_stream_write_CB_register.
Copy Code
|
|
---|---|
typedef LONG (LPACCUAPI LPFNIG_PDF_STREAM_PROC)( LPSTR lpData, UINT nDataLen, LPVOID clientData ); |
Name | Type | Description |
lpData | LPSTR | Buffer into which your procedure must place the number of bytes specified by nDataLen. |
nDataLen | UINT | Number of bytes to read from the stream and place into data. |
clientData | LPVOID | User-supplied data that was specified in the call to IG_PDF_stream_read_CB_register or IG_PDF_stream_write_CB_register. |
Returns the number of bytes actually read or written.
This function does not process image pixels.
This procedure must return the number of bytes specified by nDataLen, obtaining them in any way it wishes.