You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/03/12 16:59:00 UTC

[jira] [Resolved] (PDFBOX-4146) Patch: Fix for appearance of visible signature

     [ https://issues.apache.org/jira/browse/PDFBOX-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-4146.
-------------------------------------
       Resolution: Fixed
         Assignee: Tilman Hausherr
    Fix Version/s: 3.0.0 PDFBox

Thank you [~mato7d5]! Btw there is an alternative example for visual signing available in the repository and in the next source download, see also

https://stackoverflow.com/questions/44311502/in-java-using-pdfbox-how-to-create-visible-digital-signature-with-text

> Patch: Fix for appearance of visible signature
> ----------------------------------------------
>
>                 Key: PDFBOX-4146
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4146
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 2.0.8
>            Reporter: Martin Mancuska
>            Assignee: Tilman Hausherr
>            Priority: Minor
>              Labels: Signature, patch
>             Fix For: 2.0.9, 3.0.0 PDFBox
>
>         Attachments: visible_signature.patch
>
>
> We're using PDFBox (as backend used by Esig DSS) for digital signing of documents. We've found out  that visible signature has different look on Mac Preview app than other PDF viewers. After some investigation we suspect that BBox-es for appearance of signature is not filled correctly by PDFBox. The values are hard coded as [0, 0, 100, 50]. Also transformation matrix for translating from form XObject coordinate system into default one has value (1, 0, 0, 1, 0, 0) -> no scaling between default user coordinate system and form XObject coordinate system.
> Therefore I think that the Mac Preview App draws signature with dimensions 100x50 because no transformation were done.
> I've attached patch which solves this issue for us. The signature is shown correctly in all PDF viewers now. Maybe you can take a look on it and integrate it into your code base, or propose better solution.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org