The code is
- Code: Select all
var pdfdocument = new PdfDocument();
pdfdocument.LoadFromFile(pdfFileName, FileFormat.PDF);
pdfdocument.PrintDocument.PrinterSettings.Copies = 1;
pdfdocument.PrintDocument.Print();
pdfdocument.Dispose();
var pdfdocument = new PdfDocument();
pdfdocument.LoadFromFile(pdfFileName, FileFormat.PDF);
pdfdocument.PrintDocument.PrinterSettings.Copies = 1;
pdfdocument.PrintDocument.Print();
pdfdocument.Dispose();