Send an existing PDF file to a printer
Namespace: pdf7.PdfWriter
Assembly: pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax
public void PrintPdf( string pdfFileName, string printerSelection, string printToPrinterName, string pdfPrinterName, bool showProgress, int bitsPerPixel, string documentName, int maxResolution, bool scaleToFit, int firstPage, int lastPage, int timeoutMilliseconds )
Parameters
- pdfFileName
- Type: SystemString
Full path to PDF file to print. - printerSelection
- Type: SystemString
How the printer will be selected. Valid values are "usedefault", "ask", "specific". - printToPrinterName
- Type: SystemString
Name of printer to print to if a specific printer is used. - pdfPrinterName
- Type: SystemString
Name of PDF printer that this API is linked to. - showProgress
- Type: SystemBoolean
Show render progress. - bitsPerPixel
- Type: SystemInt32
Valid values are 1, 4, 8, 24. - documentName
- Type: SystemString
Name of document in spooler queue. - maxResolution
- Type: SystemInt32
Maximum DPI resolution for print job. - scaleToFit
- Type: SystemBoolean
Scale the content to fit the paper. - firstPage
- Type: SystemInt32
Page number of first page to print. - lastPage
- Type: SystemInt32
Page number of last page to print. 0 is default and will print all pages after the first selected page. - timeoutMilliseconds
- Type: SystemInt32
Maximum time to wait for print job to render.
See Also