Skip to content

Commit 606e3e7

Browse files
committed
Changed appearance streams weren't marked as modified. SUP-1942
1 parent e217934 commit 606e3e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ This file is part of the iText (R) project.
8686
import com.itextpdf.layout.property.Property;
8787
import com.itextpdf.layout.property.TextAlignment;
8888
import com.itextpdf.layout.property.VerticalAlignment;
89-
import org.slf4j.Logger;
90-
import org.slf4j.LoggerFactory;
9189

9290
import java.io.IOException;
9391
import java.nio.charset.StandardCharsets;
@@ -96,6 +94,9 @@ This file is part of the iText (R) project.
9694
import java.util.List;
9795
import java.util.Set;
9896

97+
import org.slf4j.Logger;
98+
import org.slf4j.LoggerFactory;
99+
99100
/**
100101
* This class represents a single field or field group in an {@link com.itextpdf.forms.PdfAcroForm
101102
* AcroForm}.
@@ -1911,6 +1912,7 @@ public boolean regenerateField() {
19111912
appearance.getResources().addFont(getDocument(), localFont);
19121913
PdfDictionary ap = new PdfDictionary();
19131914
ap.put(PdfName.N, appearance.getPdfObject());
1915+
ap.setModified();
19141916
put(PdfName.AP, ap);
19151917

19161918
return true;

0 commit comments

Comments
 (0)