This project has moved. For the latest updates, please go here.

Convert Pdf to Dcx just black and white color

Jan 2 at 1:22 PM
Can you please give me a short code snippet (c#) what to do to convert a pdf File to a dcx with just black and white color. In older day I used command line option "convert.exe -map Colormap.pcx".
Now I would like to do it via code
            using (var image = new MagickImage("test.pdf")) 
..... To Something .....
Jan 2 at 2:47 PM
Do you want to use a colormap or do you just want to reduce it to black and white? Does your Colormap.pcx file only contain black and white?
Jan 3 at 9:04 AM
I just want to reduce it to black and white to make it ready to be sent via fax. I don't need to use a colormap better would be via source code.
Jan 3 at 8:29 PM
Doing image.ColorType = ColorType.Bilevel; will probably be sufficient in your case. Can you give that a try?
Jan 4 at 8:08 AM
Yes I think this is it. Thanks a lot!