Hi, I'm using ABBY SDK 10-0-9-89.
I'm trying to Analyze the page and then transform it and analyze again:
But transformation crashes with exception:
And I do not do anything else just loaded document and trying to perform those operations on a page. Any ideas please what's wrong and how it can be worked around?
asked 04 Aug '15, 18:08
The issue occurs because the page layout is not empty and to use the IImageDocument::Transform method you should firstly remove all blocks from the page layout. To do it, call the ILayoutBlocks::RemoveAll method for each of the ILayout::Blocks, ILayout::BlackSeparators, ILayout::VisualBlocks collections of the corresponding layout. The fact is that during the first call of the IFRPage::Analyze method ABBYY FineReader Engine has already detected some certain blocks and put them to the Layout object for your page.