Skip to content

Commit 728579a

Browse files
committed
Update cmp files for Hebrew acroform test
DEVSIX-2069 (+1 squashed commits) Squashed commits: [d8abad6e1c] Delete unneccessary ticket references DEVSIX-2069
1 parent 51514e2 commit 728579a

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

forms/src/main/java/com/itextpdf/forms/fields/PdfFormField.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,9 @@ protected Object[] getFontAndSize(PdfDictionary asNormal) throws IOException {
27612761
Object fontNameObj = dab[DA_FONT];
27622762
if (fontNameObj != null) {
27632763
daFontName = new PdfName(fontNameObj.toString());
2764-
// according to spec, DA font shall be taken from the DR
2764+
// according to spec, if the DR and Resources dictionaries contain resources with the same name,
2765+
// the one already in the Resources dictionary shall be left intact, not replaced with
2766+
// the corresponding value from the DR dictionary.
27652767
if (normalFontDic != null && null != normalFontDic.getAsDictionary(daFontName)) {
27662768
daFontDict = normalFontDic.getAsDictionary(daFontName);
27672769
} else if (defaultFontDic != null) {

forms/src/test/java/com/itextpdf/forms/PdfFormFieldTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ public void formRegenerateWithInvalidDefaultAppearance01() throws IOException, I
629629
}
630630

631631
@Test
632-
//DEVSIX-2069
633632
//Create a document with formfields and paragraphs in both fonts, and fill them before closing the document
634633
public void fillFieldWithHebrewCase1() throws IOException, InterruptedException {
635634
String testName = "fillFieldWithHebrewCase1";
@@ -661,7 +660,6 @@ public void fillFieldWithHebrewCase1() throws IOException, InterruptedException
661660
}
662661

663662
@Test
664-
//DEVSIX-2069, cmp_file will have to be changed after fix
665663
//Create a document with formfields and paragraphs in both fonts, and fill them after closing and reopening the document
666664
public void fillFieldWithHebrewCase2() throws IOException, InterruptedException {
667665
String testName = "fillFieldWithHebrewCase2";
@@ -698,7 +696,6 @@ public void fillFieldWithHebrewCase2() throws IOException, InterruptedException
698696
}
699697

700698
@Test
701-
//DEVSIX-2069
702699
//Create a document with formfields in both fonts, and fill them before closing the document
703700
public void fillFieldWithHebrewCase3() throws IOException, InterruptedException {
704701
String testName = "fillFieldWithHebrewCase3";
@@ -725,7 +722,6 @@ public void fillFieldWithHebrewCase3() throws IOException, InterruptedException
725722
}
726723

727724
@Test
728-
//DEVSIX-2069, cmp_file will have to be changed after fix
729725
//Create a document with formfields in both fonts, and fill them after closing and reopening the document
730726
public void fillFieldWithHebrewCase4() throws IOException, InterruptedException {
731727
String testName = "fillFieldWithHebrewCase4";

0 commit comments

Comments
 (0)