PrintDocumentToFile
Version history
This function was introduced in Quick PDF Library version 7.18.
Description
Renders certain pages from the selected document to the specified printer. The print output is directed to the specified spool file.
Not all printer drivers support the DocInfo.lpszOutput field so results may vary.
Syntax
Delphi
function TDebenuPDFLibrary1811.PrintDocumentToFile(PrinterName: WideString;
StartPage, EndPage, Options: Integer; FileName: WideString): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::PrintDocumentToFile(PrinterName As String,
StartPage As Long, EndPage As Long, Options As Long,
FileName As String) As Long
DLL
int DPLPrintDocumentToFile(int InstanceID, wchar_t * PrinterName, int StartPage,
int EndPage, int Options, wchar_t * FileName)
Parameters
PrinterName | The name of the printer to use for printing. This is the name that appears in the Windows Print Manager. Use the GetPrinterNames function to return a list of valid printers on the system. A value returned by the NewCustomPrinter function can also be used here. |
StartPage | The first page to print |
EndPage | The last page to print |
Options | Use the PrintOptions function to obtain a value for this parameter |
FileName | The file name where print output should be spooled to. |