public class MergeFieldsStrategy extends Object implements OnDuplicateFormFieldNameStrategy
OnDuplicateFormFieldNameStrategy implementation that merges the second field into the first field if the
second field has the same name as the first field.
This strategy is used by default.| Constructor and Description |
|---|
MergeFieldsStrategy()
Creates an instance of
MergeFieldsStrategy |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(PdfFormField firstField,
PdfFormField secondField,
boolean throwExceptionOnError)
executes the strategy.
|
public MergeFieldsStrategy()
MergeFieldsStrategypublic boolean execute(PdfFormField firstField, PdfFormField secondField, boolean throwExceptionOnError)
execute in interface OnDuplicateFormFieldNameStrategyfirstField - the first fieldsecondField - the second fieldthrowExceptionOnError - if true, an exception will be thrownCopyright © 1998–2025 Apryse Group NV. All rights reserved.