RenderPagesToPrintFileA

Rendering, printing, file output

Description

ANSI variant of RenderPagesToPrintFile

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

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

Return values

Returns 1 on success and 0 on failure

Remarks

A failed call removes its partial output file; the ANSI DLL entry point decodes page ranges and file names as UTF-8

See also

RenderPagesToPrintStream, RenderPagesToPrintData, RenderPagesToPrintBuffer