RenderPagesToPrintFileA

描繪、列印、檔案輸出

描述

RenderPagesToPrintFile 的 ANSI 版本

字串參數接受 ANSI 文字,其餘行為與寬字元字串版本完全相同

語法

Delphi

Function TPDFlib.RenderPagesToPrintFile(DPI: Double; Const PageRanges: WideString; PrintFormat, Options: Integer; Const FileName: WideString): Integer;

ActiveX

Function PDFlib::RenderPagesToPrintFile(DPI As Double, PageRanges As String, PrintFormat As Long, Options As Long, FileName As String) As Long

DLL

int DLRenderPagesToPrintFile(int InstanceID, double DPI, const wchar_t* PageRanges, int PrintFormat, int Options, const wchar_t* FileName);
int DLRenderPagesToPrintFileA(int InstanceID, double DPI, const char* PageRanges, int PrintFormat, int Options, const char* FileName);

傳回值

成功傳回 1,失敗傳回 0

備註

呼叫失敗時會移除部分產出的檔案;ANSI DLL 進入點會以 UTF-8 解碼頁面範圍與檔名

另見

RenderPagesToPrintStream, RenderPagesToPrintData, RenderPagesToPrintBuffer