-
Notifications
You must be signed in to change notification settings - Fork 6
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
PageLabel Num Trees not starting with 0 #118
Comments
Any explicit "shall" statement related to file format in ISO 32000-2 is in scope for Arlington... but locating and encoding them all via predicates is a huge and ongoing task! ATM most of the captured requirements are those stated within the Tables. So, yes, the requirement "The tree shall include a value for page index 0." is definitely in scope. Because PageLabels use the complexity of a
I also try to make the predicates "read aloud" as close as possible to the ISO 32000-2 requirement - I think for this case that is close enough. |
Probably rule should look like: |
Right you are, but I'd still want to wrap it with an IsPresent: |
I think using |
I was thinking about the negative case where index 0 is mapped to the null object and how to guard against that. I do NOT want to encode or assume the null processing rule as that is a processing behaviour and not part of the model itself. This comes down to how the |
Quick question about what is in scope for Arlington and what isn't. If I understand correctly, for PageLabels Arlington checks against the Table 161 in ISO32000-2:2017. However, there is this additional sentence in the spec for the numbered tree:
"The tree shall include a value for page index 0." (see p. 455 and within table 161).
I've encountered a file in the wild that was created with a numbered tree not starting with 0 and have build a small synthetic file (attached) based on that where the tree is:
/Nums [1 <</S /D>> 2 <</S /r>>]
I know that different PDF readers handle Page Label display with a numbered tree not starting at 0 differently - some just stick to decimal Arabic numerals per default, some interprete the tree as is, ignoring the error.
My questions are:
I checked the file with Arlington model (via veraPDF's implementation) and it came back as having no deviations.
hello_label_wrong.pdf
The text was updated successfully, but these errors were encountered: