Skip to main content

Multiple PDF Print

Version: 3.0

Multiple PDF Print

The below example demonstrates how to send multiple PDF documents to the default printer all as one print job. The below example prints to the system's default printer (using the static property "Printer.Default"). If a printer other than the system default printer is desired, simply supply the PrintJob constructor with the actual string name of a printer to be used.

PrintJob printJob = new PrintJob(Printer.Default);

printJob.Pages.Add("C:\\Temp\\DocumentA.pdf");
printJob.Pages.Add("C:\\Temp\\DocumentB.pdf");
printJob.Pages.Add("C:\\Temp\\DocumentC.pdf");

printJob.Print();
Dim MyPrintJob As New PrintJob(Printer.Default)

MyPrintJob.Pages.Add("C:\Temp\DocumentA.pdf")
MyPrintJob.Pages.Add("C:\Temp\DocumentB.pdf")
MyPrintJob.Pages.Add("C:\Temp\DocumentC.pdf")

MyPrintJob.Print()
Documentation version