[
https://issues.apache.org/jira/browse/PDFBOX-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815674#comment-16815674
]
Tilman Hausherr commented on PDFBOX-4511:
-----------------------------------------
Yes if a person would sign the same file twice, then one would have twice the
field name. Or if somebody uses "signature1" as field name, without checking
whether that field name already exists. My suggestion would still bring the
risk, but it would be outside of PDFBox.
Re the workaround: it sounds risky. I'm wondering if such a solution would
consider all aspects of the document structure, or if there would be some
corner cases with weird results.
> Add name to signature field
> ---------------------------
>
> Key: PDFBOX-4511
> URL: https://issues.apache.org/jira/browse/PDFBOX-4511
> Project: PDFBox
> Issue Type: Improvement
> Components: Signing
> Affects Versions: 2.0.14
> Reporter: Luiz
> Priority: Major
> Labels: patch
> Attachments: field_name.jpg, signatureFieldName.patch
>
>
> I've implemented an adjust to add signature field name on method
> {code:java}
> addSignature(PDSignature sigObject, SignatureInterface signatureInterface,
> SignatureOptions options){code}
> Only add if PDSignature contains a name.
> Adobe Reader shows the name as you can see in field_name.jpg.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]