Hi,
We have posted a new build that fixed the "An fill-in form field must have a Name." error. Please see your private message for the download location.
As to the "Property 'Rect' can not be empty", you will need to change your code like this:
Code: C#
foreach (PdfField field in doc.Fields)
{
if (field.Children.Count == 0)
field.Color = ......
}
Note that you have to check whether the field is a "terminal" field first because fields in a PDF file can be organized as a tree. You can only set Color on the "terminal" fields.
Hope this helps. Please feel free to let us know if there is anything else.
Thanks!