How do I mention a page as Black and White while appending to MergeDocument object?
The page has some color images and need to print the page as black and white for cost effective.
Environment:
C#.Net 2010 (Winforms)
Windows 7
I am creating the PDF file report.
private MergeDocument _mergerDocument;
MergeDocument tempMergeDocument = new
MergeDocument(TemplateBuffer.GetTemplate(templateId), _mergeOptions);
FYI. Usually pages are added using MergeDocument.Append method
_mergerDocument.Append(TemplateBuffer.GetTemplate(templateId),
templatePage, 1, _mergeOptions);
I uses MergeDocument and keep appending the pages. If the
MergeDocument object has 10 pages,how do I set for one psecific page to print it in "Black and White".
Appending page as black and white color
Re: Appending page as black and white color
Support · Jun 28, 2011Hello,
Using the MergeDocument class (DynamicPDF Merger) it is not possible to change the page color or specify to print the document in black & white.
We have a different product called DynamicPDF PrintManager for .NET
that is used to print the PDF documents directly to the printer. Using this product you can set the print job options to print in black & white. Below is the sample code using PrintManager API.
PrintJob printJob = new PrintJob(Printer.Default);
InputPdf pdf = new InputPdf("test1.pdf");
printJob.Pages.Add(pdf);
printJob.PrintOptions.Color = false;
printJob.Print();
Thanks,
ceTe Software Support Team