Posted by a ceTe Software moderator
Hello,
You can set the orientation for the pages in the PrintJob using OrientationType property. If you would like to print the pages in portrait mode, then set the OrientationType as Portrait. Here is the code sample:
string strFileName = @"Input PDF file path";
string strPrinterName = "Printer name";
InputPdf inPdf = new InputPdf(strFileName);
PrintJob printJob = new PrintJob(strPrinterName, inPdf);
printJob.PrintOptions.Orientation.Type = OrientationType.Portrait;
printJob.PrintOptions.Copies = 1;
printJob.PrintOptions.Scaling = PageScaling.ActualSize;
printJob.PrintOptions.PrintAnnotations = false;
printJob.Print();
Thanks,
ceTe Software Support Team.