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 2015/07/20 18:45:04 UTC

[jira] [Resolved] (PDFBOX-2892) Invisible signature annotation violates PDF/A

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

Tilman Hausherr resolved PDFBOX-2892.
-------------------------------------
       Resolution: Fixed
         Assignee: Tilman Hausherr
    Fix Version/s: 2.0.0

Done, thanks!

> Invisible signature annotation violates PDF/A
> ---------------------------------------------
>
>                 Key: PDFBOX-2892
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2892
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Signing
>    Affects Versions: 2.0.0
>            Reporter: Petras
>            Assignee: Tilman Hausherr
>              Labels: PDF/A, Signature
>             Fix For: 2.0.0
>
>         Attachments: Patch_to_create_PDF_A_conformant_invisible_signature_annotation_dictionary_.patch
>
>
> Using PDFBox v2.0 snapshot I tried to sign PDF/A document with invisible signature. I noticed that invisible signature annotation dictionary, when signature has been created with this method {{PDDocument#addSignature(:PDSignature, :SignatureInterface)}}, is created with *F* key’s *NoView* flag bit set to 1 in Widget annotation dictionary (see: {{PDDocument.java#247}}):
> {code:java}
> // set visibility flags
> if (options.getVisualSignature() == null)
> {
>     signatureField.getWidgets().get(0).setNoView(true);
> }
> {code}
> The use of this flag is redundant for making signature field invisible. As ISO 32000 states:
> bq. Signature fields that are not intended to be visible shall have an annotation rectangle that has zero height and width. Conforming readers shall treat such signatures as not visible.
> Besides, the use of this flag violates PDF/A-1 (and PDF/A-2) requirements for Annotation dictionary F key:
> bq. The F key’s Print flag bit shall be set to 1 and its Hidden, Invisible and NoView flag bits shall be set to 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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