PrintDocumentToFile
渲染和打印
描述
将所选文档的特定页面渲染到指定打印机。打印输出会定向到指定的后台处理文件
并非所有打印机驱动程序都支持 DocInfo.lpszOutput 字段,因此结果可能有所不同
语法
Delphi
Function TPDFlib.PrintDocumentToFile(Const PrinterName: WideString; StartPage, EndPage, Options: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::PrintDocumentToFile(PrinterName As String, StartPage As Long, EndPage As Long, Options As Long, FileName As String) As Long
DLL
int DLPrintDocumentToFile(int InstanceID, const wchar_t * PrinterName, int StartPage, int EndPage, int Options, const wchar_t * FileName);
参数
| PrinterName | 有关此功能、参数或返回值的说明 |
|---|---|
| StartPage | 要打印的第一页 |
| EndPage | 要打印的最后一页 |
| Options | 使用 PrintOptions 函数获取此参数的值 |
| FileName | 打印输出应假脱机到的文件名 |