Conversion option to force black and white?

Conversion option to force black and white?

Forum member · Aug 29, 2014
Is there a conversion option to force a source doc with color to be converted into a black and white pdf? Thanks!

Re: Conversion option to force black and white?

Support · Sep 2, 2014
Hello, There are no conversion options available in Converter that would produce a black and white PDF from a source document with color content. To achieve your requirement, you would need to use a combination of products. DynamicPDF Converter for .NET would convert a supported document to PDF, DynamicPDF Rasterizer for .NET would create a black and white image from the PDF and finally use DynamicPDF Generator for .NET to create a PDF by embedding the black and white image. Here is the pseudo code: //Use Converter to convert a Word document to PDF. Converter.Convert(@"C:\colordoc.doc", @"C:\colordoc.pdf"); //Use Rsterizer to convert the PDF to B&W TIFF image. ceTe.DynamicPDF.Rasterizer.InputPdf pdf = new ceTe.DynamicPDF.Rasterizer.InputPdf(@"C:\colordoc.pdf"); PdfRasterizer rasterizer = new PdfRasterizer(pdf); TiffMonochromeColorFormat tiffColorFormat = new TiffMonochromeColorFormat(TiffMonochromeCompressionType.CcitGroup4); TiffImageFormat tiffImageFormat = new TiffImageFormat(tiffColorFormat); rasterizer.DrawToMultiPageTiff(@"C:\BWImage.tiff", tiffImageFormat, ImageSize.Dpi300); //Use Generator to build a PDF with the B&W TIFF. TiffFile tiff = new TiffFile(@"C:\BWImage.tiff"); Document pdfdoc = tiff.GetDocument(); pdfdoc.Draw(@"C:\BWpdf.pdf"); Thanks, ceTe Software Support Team.