RenderPagesToPrintBuffer
DLL, rendering, printing
Description
Renders selected pages and copies the complete binary print stream to a caller-owned buffer
Syntax
DLL
int DLRenderPagesToPrintBuffer(int InstanceID, double DPI, const wchar_t* PageRanges, int PrintFormat, int Options, void* Buffer, int BufferSize);
int DLRenderPagesToPrintBufferA(int InstanceID, double DPI, const char* PageRanges, int PrintFormat, int Options, void* Buffer, int BufferSize);Parameters
| DPI, PageRanges, PrintFormat, Options | Follow RenderPagesToPrintStream |
|---|---|
| Buffer | The caller-owned destination, or null to query the required byte count |
| BufferSize | The capacity of Buffer in bytes |
Return values
Returns the positive byte count for a size query or successful copy, the negative required byte count when the supplied buffer is too small, and 0 when export fails
Remarks
The query and copy calls each perform an export, allowing the library to avoid retaining large binary payloads inside the DLL instance; the ANSI entry point decodes PageRanges as UTF-8