添加引用 FreeSpire.PDF 包。
var path = @"C:\Users\malema\Desktop\abc.pdf"; var doc = new PdfDocument(); doc.LoadFromFile(path); doc.PrintSettings.PrinterName = "Canon MP280 series Printer"; doc.Print();