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 static void PrintPdf( string pdfFileName, PdfUtilPrinterSelection printerSelection, string printToPrinterName, string pdfPrinterName, bool showProgress, int bitsPerPixel, string documentName, int maxResolution, bool scaleToFit, int firstPage, int lastPage, int timeoutMilliseconds, int pageWidth, int pageHeight )
Parameters
- pdfFileName
- Type: SystemString
Full path to PDF file to print. - printerSelection
- Type: pdf7.PdfWriterPdfUtilPrinterSelection
How the printer will be selected. - 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. - pageWidth
- Type: SystemInt32
Page width in points (1/72 inch). - pageHeight
- Type: SystemInt32
Page height in points (1/72 inch).
See Also