Send an existing PDF file to a printer

Namespace:  bioPDF.PdfWriter
Assembly:  bioPDF.PdfWriter (in bioPDF.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub PrintPdf ( _
	pdfFileName As String, _
	printerSelection As PdfUtil..::.PrinterSelection, _
	printToPrinterName As String, _
	pdfPrinterName As String, _
	showProgress As Boolean, _
	bitsPerPixel As Integer, _
	documentName As String, _
	maxResolution As Integer, _
	scaleToFit As Boolean, _
	firstPage As Integer, _
	lastPage As Integer, _
	timeoutMilliseconds As Integer _
)
C#
public static void PrintPdf(
	string pdfFileName,
	PdfUtil..::.PrinterSelection printerSelection,
	string printToPrinterName,
	string pdfPrinterName,
	bool showProgress,
	int bitsPerPixel,
	string documentName,
	int maxResolution,
	bool scaleToFit,
	int firstPage,
	int lastPage,
	int timeoutMilliseconds
)
Visual C++
public:
static void PrintPdf(
	String^ pdfFileName, 
	PdfUtil..::.PrinterSelection printerSelection, 
	String^ printToPrinterName, 
	String^ pdfPrinterName, 
	bool showProgress, 
	int bitsPerPixel, 
	String^ documentName, 
	int maxResolution, 
	bool scaleToFit, 
	int firstPage, 
	int lastPage, 
	int timeoutMilliseconds
)
JavaScript
bioPDF.PdfWriter.PdfUtil.printPdf = function(pdfFileName, printerSelection, printToPrinterName, pdfPrinterName, showProgress, bitsPerPixel, documentName, maxResolution, scaleToFit, firstPage, lastPage, timeoutMilliseconds);

Parameters

pdfFileName
Type: System..::.String
Full path to PDF file to print.
printerSelection
Type: bioPDF.PdfWriter..::.PdfUtil..::.PrinterSelection
How the printer will be selected.
printToPrinterName
Type: System..::.String
Name of printer to print to if a specific printer is used.
pdfPrinterName
Type: System..::.String
Name of PDF printer that this API is linked to.
showProgress
Type: System..::.Boolean
Show render progress.
bitsPerPixel
Type: System..::.Int32
Valid values are 1, 4, 8, 24.
documentName
Type: System..::.String
Name of document in spooler queue.
maxResolution
Type: System..::.Int32
Maximum DPI resolution for print job.
scaleToFit
Type: System..::.Boolean
Scale the content to fit the paper.
firstPage
Type: System..::.Int32
Page number of first page to print.
lastPage
Type: System..::.Int32
Page number of last page to print. 0 is default and will print all pages after the first selected page.
timeoutMilliseconds
Type: System..::.Int32
Maximum time to wait for print job to render.

See Also