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에서 근무하고 있습니다.