PrintPagesToFile
렌더링 및 인쇄
설명
선택한 문서의 페이지 범위 목록을 지정한 프린터로 렌더링합니다. 인쇄 출력은 지정한 스풀 파일로 전달됩니다
일부 프린터 드라이버는 DocInfo.lpszOutput 필드를 지원하지 않으므로 결과가 달라질 수 있습니다
구문
Delphi
Function TPDFlib.PrintPagesToFile(Const PrinterName, PageRanges: WideString; Options: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::PrintPagesToFile(PrinterName As String, PageRanges As String, Options As Long, FileName As String) As Long
DLL
int DLPrintPagesToFile(int InstanceID, const wchar_t* PrinterName, const wchar_t* PageRanges, int Options, const wchar_t* FileName);
int DLPrintPagesToFileA(int InstanceID, const char* PrinterName, const char* PageRanges, int Options, const char* FileName);
매개변수
| PrinterName | 인쇄에 사용할 프린터 이름이며 Windows Print Manager에 표시되는 이름입니다. GetPrinterNames 함수로 유효한 프린터 목록을 가져오거나 NewCustomPrinter 반환 값을 사용할 수 있습니다 |
|---|---|
| PageRanges | 인쇄 페이지 목록 예: "1-10,12,14" |
| Options | PrintOptions 함수를 사용하여 이 매개변수의 값을 가져옵니다 |
| FileName | PrintOptions 함수를 사용하여 이 매개변수의 값을 가져옵니다 |
반환 값
| 0 | 오류가 발생했습니다 |
|---|---|
| 1 | 페이지가 성공적으로 인쇄됨 |