ImageGear for C and C++ on Windows v19.10 - Updated
LPFNIG_PDF_STREAM_PROC
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.

Declaration:

 
Copy Code
typedef LONG (LPACCUAPI LPFNIG_PDF_STREAM_PROC)(
        LPSTR lpData,
        UINT nDataLen,
        LPVOID clientData 
);

Arguments:

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.

Return Value:

Returns the number of bytes actually read or written.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

This procedure must return the number of bytes specified by nDataLen, obtaining them in any way it wishes.