Skip to content

Commit 3013511

Browse files
author
Benoit Lagae
committed
Use form name: getValue() instead of toString()
DEVSIX-1357
1 parent 25a3282 commit 3013511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forms/src/main/java/com/itextpdf/forms/PdfAcroForm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,10 +845,10 @@ private Map<String, PdfFormField> iterateFields(PdfArray array, Map<String, PdfF
845845
parentField = PdfFormField.makeFormField(parentField.getParent(), document);
846846
}
847847
}
848-
name = fieldName.toString() + "." + index;
848+
name = fieldName.getValue() + "." + index;
849849
index++;
850850
} else {
851-
name = fieldName.toString();
851+
name = fieldName.getValue();
852852
}
853853
fields.put(name, formField);
854854
if (formField.getKids() != null) {

0 commit comments

Comments
 (0)