Dispose PDF after Printing
When finished printing a PDF it is recommend you dispose of the PDF by explicitly calling the Dispose method. The following example illustrates.
InputPdf pdf = new InputPdf(pdfFilePath);
PrintJob printJob = new PrintJob(Printer.Default, pdf);
printJob.Print();
pdf.Dispose();
Dim pdf As InputPdf = New InputPdf(pdfFilePath)
Dim printJob As PrintJob = New PrintJob(Printer.Default, pdf)
printJob.Print()
pdf.Dispose()