Some images (pdf) are scanned images in black and white (shades of gray) while others are scanned in color. But as many of my documents could be faxed to me, Even if I scan in color a black and white document... I receive an exception "The image must be color.", how can I open the document in FREngine so that it will be a color document, I have seen no clear example showing how to auto crop a document.

All of my documents are one page files...

asked 09 Jun '14, 16:29

KSchumann's gravatar image


IImageDocument::Crop method can be used for color images only. Can you please provide the description of your issue and some samples of the processed images to


answered 10 Jun '14, 06:32

SDK_support's gravatar image

SDK_support ♦♦

While I can open some of the Color pdf, attached is a pdf that needs to be cropped, and I do not know of how I can open it with Color for cropping, as it is only a Black and White image (gray scale). I hoped that the rasterizer would open the color image RGB but only use the 256 gray shades with the RGB color set.

FREngine.FRDocument frDocument = engine.Engine.CreateFRDocument(); frDocument.AddImageFile(imagePath, _prepareImageMode, null); FREngine.IFRPage frPage = frDocument.Pages[0]; //Throws an Exception.... Crop MUST be color... frPage.ImageDocument.CropImage();

(10 Jun '14, 15:13) KSchumann

P.S. I don't see how I can provide samples if my problem...

(10 Jun '14, 15:15) KSchumann

At the moment the Crop method works only for color images. It is not supported for black and white or gray scale images. If it is possible, please scan the images in color. In case your issues is in something else, can you please send its description to this e-mail

(11 Jun '14, 13:35) SDK_support ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 09 Jun '14, 16:29

Seen: 1,064 times

Last updated: 11 Jun '14, 13:35

© 2016 ABBYY. All rights Reserved. | Privacy Policy | Legal