Redirecting to File
The below example demonstrates how to redirect a PDF document to a file instead of actual printing.
PrintJob printJob = new PrintJob(Printer.Default, "C:\\Temp\\DocumentA.pdf");
printJob.PrintToFileName = "C:\\Temp\\DocumentA.prn";
printJob.Print();
Dim printJob As New PrintJob(Printer.Default, "C:\\Temp\\DocumentA.pdf")
printJob.PrintToFileName = "C:\\Temp\\DocumentA.prn"
printJob.Print()