Dear Team,
I am using 9.0.0.0 version of Aspose PDF. I am trying to print a PDF which has colored text and images in it as B&W. Color property of the printer is set to true. So I am changing it to false as below. Any kind of suggestion is most welcome and appreciated.
var pageSettings = new PageSettings { Margins = new Margins(0, 0, 0, 0), Color = false };
var printDocument = new PrintDocument();
var viewer = new PdfViewer
{
AutoResize = true,
AutoRotate = true,
PrintPageDialog = false
};
var printerSettings = new PrinterSettings
{
PrinterName = printDocument.PrinterSettings.PrinterName,
Duplex = Duplex.Simplex,
};
printerSettings.DefaultPageSettings.Color = false;
try
{
log.Info(string.Format("Printing document - {0}", filePath));
viewer.PrintLargePdf(filePath, pageSettings, printerSettings);
}
finally
{
viewer.Close();
}