Question
How to save the detected field's region as a picture?
Answer
In Document Definition Editor -> right-click on the select the field -> Properties... -> Rules tab -> New Rule... -> Script -> Edit... -> and paste this content:
Context.Field("DeliveryAddress").Regions[0].Picture.SaveAs("c:\\temp\\" + Context.Field("DeliveryAddress").Name.ToString() + ".jpg");
Then once the input image matches to the DocDef, FC will automatically save the field's region as the picture in the local drive that you specified.
Comments
0 comments
Please sign in to leave a comment.