public static DocClass TawuniaLegacy() { var result = new DocClass("Tawunia", 2); var crNumRule = new StaticTextRule("CrNum", RuleBinding.Optional); result.AddHeaderRule(crNumRule); crNumRule.TextToSearch = "CR number"; crNumRule.SearchArea = new System.Windows.Rect(0, 0, 1000, 1000); var stBupaArabia = new StaticTextRule("Bupa Arabia", RuleBinding.Prohibited); result.AddHeaderRule(stBupaArabia); stBupaArabia.TextToSearch = "Bupa Arabia"; stBupaArabia.SearchArea = new System.Windows.Rect(0, 0, 2000, 3000); var InceptionRule = new StaticTextRule("Inception", RuleBinding.Required); result.AddHeaderRule(InceptionRule); InceptionRule.DependencyRule = crNumRule; var depAr = new DependencyArea(); InceptionRule.DependencyArea = depAr; depAr.Below.Type = RelationTypes.Bot; depAr.RightOf.Type = RelationTypes.Left; depAr.RightOf.Offset = -100; depAr.LeftOf.Type = RelationTypes.Right; depAr.LeftOf.Offset = 100; depAr.Above.Type = RelationTypes.Right; depAr.Above.Offset = 150; InceptionRule.TextToSearch = "Inception"; InceptionRule.SearchArea = new System.Windows.Rect(0, 0, 1000, 1000); var PolicyRule = new StaticTextRule("PolicyRule", RuleBinding.Required); result.AddFooterRule(PolicyRule); PolicyRule.TextToSearch = "Policy Holder Confirmation"; PolicyRule.SearchArea = new System.Windows.Rect(0, 0, 1000, 2000); TawuniaLegacyAddDataRules(result); TawuniaLegacySecondPageFields(result); return(result); }
public static DocClass Bupa() { var result = new DocClass("BupaTest", 4); var stBupaArab = new StaticTextRule("BupaArab", RuleBinding.Required); var firstConstr = new SearchConstraint().Page().Above().YCenter(); stBupaArab.TextToSearch = "Bupa Arabia"; //var firstConstr = (new SearchConstraint()).Page().Above.XCenter; stBupaArab.SearchConstraints.Add(firstConstr); result.AddHeaderRule(stBupaArab); return(result); }
public static DocClass Act() { var result = new DocClass("Act", 1); var stAct = new StaticTextRule("ActHead", RuleBinding.Required); stAct.TextToSearch = "Акт"; var actBot = new SearchConstraint().Page().Above().GetX(0.3); var actRight = new SearchConstraint().Page().LeftOf().GetY(0.2);; stAct.SearchConstraints.Add(actBot); stAct.SearchConstraints.Add(actRight); result.AddHeaderRule(stAct); ActAddActData(result); return(result); }
public static DocClass BupaLegacy() { var result = new DocClass("Bupa", 4); var stBupaArabia = new StaticTextRule("BupaArabia", RuleBinding.Required); stBupaArabia.TextToSearch = "Bupa Arabia for Cooperative Insurance"; result.AddHeaderRule(stBupaArabia); stBupaArabia.SearchArea = new System.Windows.Rect(0, 0, 2000, 500); var stSignature = new StaticTextRule("SignatureNStamp", RuleBinding.Required); stSignature.TextToSearch = "Signature & Stamp"; result.AddFooterRule(stSignature); stSignature.SearchArea = new System.Windows.Rect(0, 0, 1500, 3000); BupaLegacyAddHeadData(result); BupaLegacyAddTableData(result); return(result); }