Hi,
I face and issue with version 1.0.1.20321.
If you set the PrintJobPagePrintOptions.PrintOptions.Inherit to false and then, if you try to set the Orientation on the PrintJobPagePrintOptions instance, it causes an exception saying that you can't not set or read the Orientation property if Inherit is true !!!
Try this and you'll get the error:
foreach (var pdfFile in files)
{
var inputPdf = new InputPdf(pdfFile.Binary);
inputPdfs.Add(inputPdf);
printJob.Pages.Add(inputPdf);
var pagejob = printJob.Pages.Last();
pagejob.PrintOptions.Inherit = false;
pagejob.PrintOptions.Orientation = printJob.PrintOptions.Orientation;
switch (pdfFile.PageFormats)
{
case PageFormats.A4:
pagejob.PrintOptions.PaperSize = printJob.Printer.PaperSizes.A4;
break;
case PageFormats.A3:
pagejob.PrintOptions.PaperSize = printJob.Printer.PaperSizes.A3;
break;
default:
pagejob.PrintOptions.PaperSize = printJob.PrintOptions.PaperSize;
break;
}
}
Remarks: setting the PaperSize property does not suffer such issue.
Is there a fix addressed in a newer version ? If no, can you investigate please ?
Thank you for your time and your support,
Geofrey