Skip to content

Commit 65673bb

Browse files
author
Eugene Bochilo
committed
Finalize code related to form fields renderers separation
DEVSIX-7385
1 parent 37b2549 commit 65673bb

24 files changed

+182
-707
lines changed

commons/src/main/java/com/itextpdf/commons/utils/ExperimentalFeatures.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

commons/src/test/java/com/itextpdf/commons/utils/ExperimentalFeaturesTest.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

forms/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
<name>iText - forms</name>
1111
<url>https://itextpdf.com/</url>
1212

13-
<properties>
14-
<sonar.coverage.exclusions>**/forms/fields/TextAndChoiceLegacyDrawer.java</sonar.coverage.exclusions>
15-
<sonar.cpd.exclusions>**/forms/fields/TextAndChoiceLegacyDrawer.java</sonar.cpd.exclusions>
16-
</properties>
17-
1813
<dependencies>
1914
<dependency>
2015
<groupId>com.itextpdf</groupId>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ public void addFieldAppearanceToPage(PdfFormField field, PdfPage page) {
287287
}
288288

289289
/**
290-
* Gets the high-level{@link PdfFormField form field}s as a {@link Map}.
290+
* Gets root fields (i.e. direct children of Acroform dictionary).
291291
*
292292
* @return a map of field names and their associated {@link PdfFormField form field} objects
293293
*/
294-
public Map<String, PdfFormField> getDirectFormFields() {
294+
public Map<String, PdfFormField> getRootFormFields() {
295295
if (fields.size() == 0) {
296296
fields = populateFormFieldsMap();
297297
}
@@ -1088,7 +1088,7 @@ public void removeXfaForm() {
10881088
}
10891089

10901090
/**
1091-
* Put a key/value pair in the dictionary and overwrites the previous value if it already exists.
1091+
* Put a key/value pair in the dictionary and overwrite previous value if it already exists.
10921092
*
10931093
* @param key the key as pdf name
10941094
* @param value the value as pdf object

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void copy(PdfPage fromPage, PdfPage toPage) {
9696
if (fieldsFrom.size() <= 0) {
9797
return;
9898
}
99-
Map<String, PdfFormField> fieldsTo = formTo.getDirectFormFields();
99+
Map<String, PdfFormField> fieldsTo = formTo.getRootFormFields();
100100

101101
List<PdfAnnotation> annots = toPage.getAnnotations();
102102

0 commit comments

Comments
 (0)