RenderPagesToPrintFile

Rendering, printing, file output

Description

Writes selected pages as a complete driver-independent PostScript, EPS, PCL, or PWG Raster file

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

Parameters

DPI, PageRanges, PrintFormat, and Options follow RenderPagesToPrintStream; FileName is the output path

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