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: If present, the F key's Print flag bit shall be set to 1 and its Hidden, Invisible, ToggleNoView, and NoView flag bits shall be set to 0 #275

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

Comments

@Intelligent2013
Copy link
Contributor

Source issues: #264

veraPDF report:

  • root/document[0]/pages[3](11 0 obj PDPage)/annots[0](113 0 obj PDMarkupAnnot)
<rule specification="ISO 19005-3:2012" clause="6.3.2" testNumber="2" status="failed" failedChecks="2">
  <description>If present, the F key's Print flag bit shall be set to 1 and its Hidden, Invisible, ToggleNoView, and NoView flag bits shall be set to 0</description>
  <object>PDAnnot</object>
  <test>F == null || ((F &amp; 1) == 0 &amp;&amp; (F &amp; 2) == 0 &amp;&amp; (F &amp; 4) == 4 &amp;&amp; (F &amp; 32) == 0 &amp;&amp; (F &amp; 256) == 0)</test>
  <check status="failed">
    <context>root/document[0]/pages[3](11 0 obj PDPage)/annots[0](113 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
@petervwyatt
Copy link

This just means that /F 4 needs to be explicit in each annotation dictionary (except Popup annotations). See Table167 in ISO 32000-2:2020 (no-cost version).

@Intelligent2013
Copy link
Contributor Author

Currently, XFDF has the flags nozoom,norotate:

<?xml version="1.0" encoding="UTF-8"?>
<xfdf xmlns="http://ns.adobe.com/xfdf/">
	<annots>
		<text color="#FFC333" opacity="0.600000" flags="nozoom,norotate" date="2017-01-01T00:00:00Z" page="3" rect="70.866,593.864" title="ISO">...

which means bitmask 11000 regarding Table 167 in ISO 32000-2:2000.
Decimal value is 24:
image

To do: add print flag.

@Intelligent2013 Intelligent2013 moved this from 🆕 New to 🏗 In progress in Metanorma Sep 10, 2024
@Intelligent2013
Copy link
Contributor Author

Fixed in #282

@Intelligent2013 Intelligent2013 moved this from 🏗 In progress to 👀 In review in Metanorma Sep 10, 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