RenderPagesToPrintFile

渲染、打印、文件输出

描述

将选定页面写为完整且与驱动程序无关的 PostScript、EPS、PCL 或 PWG Raster 文件

语法

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

参数

DPI、PageRanges、PrintFormat 和 Options 遵循 RenderPagesToPrintStream;FileName 为输出路径

返回值

成功时返回 1,失败时返回 0

备注

调用失败会删除其部分输出文件;ANSI DLL 入口点会将页面范围和文件名解码为 UTF-8

另请参阅

RenderPagesToPrintStream、RenderPagesToPrintData、RenderPagesToPrintBuffer