Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1237,11 +1237,8 @@ private void mergeAcroForm(PDFCloneUtility cloner, PDDocumentCatalog destCatalog
{
if (srcAcroForm != null)
{
if (acroFormMergeMode == AcroFormMergeMode.PDFBOX_LEGACY_MODE)
{
acroFormLegacyMode(cloner, destAcroForm, srcAcroForm);
}
else if (acroFormMergeMode == AcroFormMergeMode.JOIN_FORM_FIELDS_MODE)
if (acroFormMergeMode == AcroFormMergeMode.PDFBOX_LEGACY_MODE ||
acroFormMergeMode == AcroFormMergeMode.JOIN_FORM_FIELDS_MODE)
{
acroFormJoinFieldsMode(cloner, destAcroForm, srcAcroForm);
}
Expand Down Expand Up @@ -1269,21 +1266,6 @@ else if (acroFormMergeMode == AcroFormMergeMode.JOIN_FORM_FIELDS_MODE)
*/
private void acroFormJoinFieldsMode(PDFCloneUtility cloner, PDAcroForm destAcroForm, PDAcroForm srcAcroForm)
throws IOException
{
acroFormLegacyMode(cloner, destAcroForm, srcAcroForm);
}

/*
* Merge the contents of the source form into the destination form for the
* destination file.
*
* @param cloner the object cloner for the destination document
* @param destAcroForm the destination form
* @param srcAcroForm the source form
* @throws IOException If an error occurs while adding the field.
*/
private void acroFormLegacyMode(PDFCloneUtility cloner, PDAcroForm destAcroForm, PDAcroForm srcAcroForm)
throws IOException
{
List<PDField> srcFields = srcAcroForm.getFields();
COSArray destFields;
Expand Down