特定のプリンタにPDFを印刷するには、DynamicPDF PrintManager for .NET製品を使用する必要があります。以下のように、実行時に各ページの給紙方法を指定できます。
InputPdf pdf = new InputPdf(@"Path for Input PDF");
Printer printerObj = new Printer("Printer name");
PrintJob printJobObj = new PrintJob(printerObj, pdf);
//Setting paper source for whole print job.
printJobObj.PrintOptions.PaperSource = printerObj.PaperSources[1];
//Setting specific tray as paper source for first page in the print job.
PrintJobPage page1 = printJobObj.Pages[0];
page1.PrintOptions.Inherit = false;
page1.PrintOptions.PaperSource = printerObj.PaperSources[2];
//Setting specific tray as paper source for second page in the print job.
PrintJobPage page2 = printJobObj.Pages[1];
page2.PrintOptions.Inherit = false;
page2.PrintOptions.PaperSource = printerObj.PaperSources[3];
printJobObj.Print();
免責事項:私は、DynamicPDFライブラリを開発している会社であるceTe Softwareの仕事をしています。