How to save the detected field's region as a picture

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");

mceclip0.png

mceclip1.png

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.

mceclip2.png

 

 

 

 

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.