I have a color PDF that I'm trying to print in black & white only using the following:
- Code: Select all
PdfDocument pdfPrint = new PdfDocument("test.pdf");
pdfPrint.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode.ActualSize);
pdfPrint.PrintSettings.PrintController = new System.Drawing.Printing.StandardPrintController();
pdfPrint.PrintDocument.DefaultPageSettings.Color = false;
pdfPrint.Print();
It always prints in color.
this line pdfPrint.PrintDocument.DefaultPageSettings.Color is depreciated but I don't see the color setting in PrintSettings.
Is there something else that needs to be done to force black and white?
Thanks
AndyG