[ 
https://issues.apache.org/jira/browse/PDFBOX-5243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385620#comment-17385620
 ] 

Tilman Hausherr commented on PDFBOX-5243:
-----------------------------------------

The problem is r1883898 from PDFBOX-4954 which changed
{code}
public void setAnnotations(List<PDAnnotation> annotations)
{
        page.setItem(COSName.ANNOTS, 
COSArrayList.converterToCOSArray(annotations));
}
{code}
to
{code}
public void setAnnotations(List<PDAnnotation> annotations)
{
        page.setItem(COSName.ANNOTS, new COSArray(annotations));
}
{code}
so the previous behaviour which would check whether it was a COSArrayList is 
gone.

However PDFBOX-4954 was about reducing the usage of COSArrayList so I'll just 
do the solution from this morning and also adapt the test.

> Second signature not visible when signing twice
> -----------------------------------------------
>
>                 Key: PDFBOX-5243
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5243
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: regression
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: 5172.pdf, 5172_signed.pdf, 5172_signed_signed.pdf, 
> 5172_signed_signed_good.pdf
>
>
> As reported by Victor Sterpu on the mailing list and on SO.
> The second file has only one annotation, but both signature fields are 
> visible.
> Reproduced using the CreateVisibleSignature2 example and changing 
> {{humanRect}} for the second signing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to