Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF/A-3A validation: Every annotation (including those whose Subtype value is Widget, as used for form fields), except for the two cases listed below, shall have at least one appearance dictionary #276

Closed
Intelligent2013 opened this issue Sep 4, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented Sep 4, 2024

Source issues: #264

veraPDF report:

  • root/document[0]/pages[3](11 0 obj PDPage)/annots[1](109 0 obj PDMarkupAnnot)
<rule specification="ISO 19005-3:2012" clause="6.3.3" testNumber="1" status="failed" failedChecks="2">
  <description>Every annotation (including those whose Subtype value is Widget, as used for form fields), except for the two cases listed below, shall have at least one appearance dictionary:
- annotations where the value of the Rect key consists of an array where value 1 is equal to value 3 and value 2 is equal to value 4;
- annotations whose Subtype value is Popup or Link

</description>
  <object>PDAnnot</object>
  <test>(width == 0 &amp;&amp; height == 0) || Subtype == "Popup" || Subtype == "Link" || AP != null</test>
  <check status="failed">
    <context>root/document[0]/pages[3](11 0 obj PDPage)/annots[1](109 0 obj PDMarkupAnnot)</context>
  </check>
</rule>

Note: occurs in iec-rice-en.presentation.pdf and iec-rice-fr.presentation.pdf only.

@Intelligent2013 Intelligent2013 added the bug Something isn't working label Sep 4, 2024
@Intelligent2013 Intelligent2013 self-assigned this Sep 4, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Sep 4, 2024
@Intelligent2013 Intelligent2013 moved this from 🆕 New to 🏗 In progress in Metanorma Sep 5, 2024
@Intelligent2013
Copy link
Contributor Author

I'm trying to understand what does mean the message 'Every annotation ... shall have at least one appearance dictionary', how to set 'appearance dictionary', etc.

For example, let's make the experiment with Adobe Acrobat only. I verify the PDF PDFUA-Ref-2-02_Invoice.pdf from https://pdfa.org/resource/pdfua-reference-suite/ for compliance with PDF/A-2 in the Adobe Acrobat:
image

'No problems found'. Ok. This PDF doesn't contain annotation. Let's add it:
image

Then repeat the checking again. The error 'Annotation has no appearance defined' occurs:

image

Does it mean that Adobe Acrobat can't define the appearance for the annotation?

I'll try to find the PDF/A with annotations.

@Intelligent2013
Copy link
Contributor Author

For the file ISO_32000-2_sponsored-ec2.pdf - the message Annotation's AP (appearance) contains only N entry is not true:
image

@petervwyatt
Copy link

Yes, it means that Acrobat is not generating ONLY the N (normal) appearance stream for the annotation. It may well have added other appearance streams. You'll need to "Save as PDF/A-3" to make sure it corrects this...

BACKGROUND
Annotation appearance streams (AP entry) are the set of PDF graphic painting commands (as standard content streams) that define what an annotation looks like on a PDF page. The AP dictionary has 3 entries: N (normal appearance, which is what PDF/A needs), R (rollover appearance) and D (down appearance). Each of these can contain different content streams for appearance states of the annotation (e.g. a checked or unchecked radio button). PDF/A requires ONLY the N appearance because, as an archival format, PDF/A is not intended to cover dynamic behaviour.

@Intelligent2013
Copy link
Contributor Author

@petervwyatt thank you!

@Intelligent2013
Copy link
Contributor Author

mn2pdf updated in #282.

@Intelligent2013 Intelligent2013 moved this from 🏗 In progress to 👀 In review in Metanorma Sep 12, 2024
@Intelligent2013
Copy link
Contributor Author

@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Metanorma Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants