示例#1
0
        public void AlignForm(FilledForm form, bool calculateAlignment)
        {
            if (calculateAlignment)
            {
                CreateFormForRecognition(form, FormsRecognitionMethod.Complex);

                form.Alignment = RecognitionEngine.GetFormAlignment(form.Master.Attributes, form.Attributes, null);
            }
            else
            {
                form.Alignment = new List <PageAlignment>();
                for (int i = 0; i < form.Result.PageResults.Count; i++)
                {
                    form.Alignment.Add(form.Result.PageResults[i].Alignment);
                }
            }
        }