RenderPagesToPrintBuffer

DLL、描繪、列印

描述

描繪所選頁面,並把完整的二進位列印串流複製到呼叫端自有的緩衝區

語法

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);

參數

DPI, PageRanges, PrintFormat, OptionsFollow RenderPagesToPrintStream
Buffer呼叫端持有的目的地;null 表示只查詢所需位元組數
BufferSizeBuffer 的容量(位元組)

傳回值

尺寸查詢或複製成功時傳回正數位元組數;提供的緩衝區太小時傳回負數的所需位元組數;匯出失敗時傳回 0

備註

查詢與複製呼叫各自執行一次匯出,程式庫因此不必在 DLL 實例內保留大型二進位酬載;ANSI 進入點以 UTF-8 解碼 PageRanges

另請參閱

RenderPagesToPrintData, RenderPagesToPrintFile