Skip to content

Commit 501c576

Browse files
Benoit Lagaeyulian-gaponenko
authored andcommitted
Correct extraction of Unicode form field names
DEVSIX-1357 Autoported commit. Original commit hash: [21a17e7e7b]
1 parent b96e8e4 commit 501c576

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

itext/itext.forms/itext/forms/PdfAcroForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,11 +952,11 @@ private IDictionary<String, PdfFormField> IterateFields(PdfArray array, IDiction
952952
parentField = PdfFormField.MakeFormField(parentField.GetParent(), document);
953953
}
954954
}
955-
name = fieldName.ToUnicodeString() + "." + index;
955+
name = fieldName.GetValue() + "." + index;
956956
index++;
957957
}
958958
else {
959-
name = fieldName.ToUnicodeString();
959+
name = fieldName.GetValue();
960960
}
961961
fields.Put(name, formField);
962962
if (formField.GetKids() != null) {

itext/itext.forms/itext/forms/fields/PdfFormField.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,12 +1578,12 @@ public virtual PdfString GetFieldName() {
15781578
());
15791579
PdfString pName = parentField.GetFieldName();
15801580
if (pName != null) {
1581-
parentName = pName.ToUnicodeString() + ".";
1581+
parentName = pName.GetValue() + ".";
15821582
}
15831583
}
15841584
PdfString name = GetPdfObject().GetAsString(PdfName.T);
15851585
if (name != null) {
1586-
name = new PdfString(parentName + name.ToUnicodeString());
1586+
name = new PdfString(parentName + name.GetValue());
15871587
}
15881588
return name;
15891589
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9eb8df0ae7a39a045bb73755f965a691197ba838
1+
21a17e7e7b030b840aa32277d4657a66843ae25d

0 commit comments

Comments
 (0)