V was only shown when the value wasn't empty AND a value wasn't required.
I think it's sufficient to omit V when the field is empty; the extra constraint that the field may not be required is too strict. git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@7 820d3149-562b-4f88-9aa4-a8e61a3485cfmaster
parent
b5c4ee7a7b
commit
4dd7df176f
|
@ -370,7 +370,7 @@ namespace iTextSharp.text.pdf {
|
|||
field.MKRotation = rotation;
|
||||
if (fieldName != null) {
|
||||
field.FieldName = fieldName;
|
||||
if ((options & REQUIRED) == 0 && !"".Equals(text))
|
||||
if (!"".Equals(text))
|
||||
field.ValueAsString = text;
|
||||
if (defaultText != null)
|
||||
field.DefaultValueAsString = defaultText;
|
||||
|
|
Loading…
Reference in New Issue