Question
Is it possible to apply a separate set of settings to a block of text on the document?
Answer
We need to create a rectangle around the dedicated block of text and apply settings to it as presented on the code sample below.
//Create and specify the region
IRegion region = engineLoader.Engine.CreateRegion();region.AddRect(myregion);
//Create block and specify typeIBlock block = document.Pages[0].Layout.Blocks.AddNew(BlockTypeEnum.BT_Text, region, 0);
//Specify text blockITextBlock textblock = block.GetAsTextBlock();
//We can specify ObjectExtractionParams and PagePreprocessing as welltextblock.RecognizerParams.SetPredefinedTextLanguage("English");
//Because we specified separate block of text we need to Synthesize document instead of Processdocument.Recognize();
document.Synthesize();
Comments
0 comments
Please sign in to leave a comment.