Skip to content

Commit

Permalink
PDFBOX-5660: use convenience method
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1918988 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 7, 2024
1 parent 9593251 commit b184fc6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ public void addSignature(PDSignature sigObject, SignatureInterface signatureInte
}

PDSignatureField signatureField = null;
COSBase cosFieldBase = acroForm.getCOSObject().getDictionaryObject(COSName.FIELDS);
if (cosFieldBase instanceof COSArray)
COSArray fieldArray = acroForm.getCOSObject().getCOSArray(COSName.FIELDS);
if (fieldArray != null)
{
COSArray fieldArray = (COSArray) cosFieldBase;
fieldArray.setNeedToBeUpdated(true);
signatureField = findSignatureField(acroForm.getFieldIterator(), sigObject);
}
Expand Down

0 comments on commit b184fc6

Please sign in to comment.