Is it possible to create Fixed Layout document definitions (.fcdot) files using only FlexiCapture SDK? I do not want to use an AFL or and XFD.
My system would work as follows
The important points are
I tried the following approaches
This follows the method given in the documentation and the sample code from Auto-learning Demo. I used the following steps
Using a mix of the two
In this, I created Anchor blocks using the data from ITrainingBatch and added it to the DocumentDefinition.
However, I saved the definition and tried processing with it. When loading the definition, all the blocks were correctly present in the template On processing, I got the following error
“No Document Definitions to match.”
Creating Fixed Layout from Flexible Layout I tried creating a Flexible Layout according to the documentation and added a dummy field and a dummy reference field. Then I saved this as AFL Then I loaded it as IDocumentDefinition using ICustomStorage::LoadFormFile. I tried to use this as a base for adding fixed layout fields. However I got the following error
"Additional information: Unable to define fixed layout inside flexible."
The message “No Document Definitions to match” can appear in case the used document definition cannot be applied for the processed image.
At least one Anchor (static element) on the page is required. It can be a reference mark - an element of a machine–readable form that is used to facilitate the matching of form images with templates and to determine the orientation of forms during automated processing or some static text, separators, barcodes. Before the program can start recognizing the contents of the form, it must match the form with its template.
Also according to the code snipped you have sent to us and .fcdot file, we could suggest that some errors can be caused by matching first element - static text (“PAYBACK”) as BlockType = BT_Anchor. This type is usually uses for some special elements of form design such as a black square, rectangle, cross or corner. Please try to set BlockType to the text “PAYBACK” as BT_StaticText.
answered 14 Mar '14, 16:31
We have received your letter with this description sent to SDK_Support@abbyy.com and have already answered on it via e-mail.
answered 12 Mar '14, 14:29