-
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
AS is always required in Widget annotations #61
Comments
Maybe I misunderstand: where is |
Sorry, I meant that the condition |
Thanks - understood. As you know I like to keep things closely aligned with the phrasing used in 32K so I think this would work:
where |
Yes, adding the predicate |
In fact, this issue shows up in all Annotation types, not just Widget annotation |
AnnotWidget.tsv
currently specifies that the AS entry is required iffn:IsRequired(fn:IsPresent(AP::N::*) || fn:IsPresent(AP::R::*) || fn:IsPresent(AP::D::*))
.This corresponds to the following phrase from PDF spec: AS is "Required if the appearance dictionary AP contains one or more subdictionaries". However, for example, the condition
fn:IsPresent(AP::N::*)
evaluates totrue
for AP entry having value of type dictionary or stream. So, as a result, AS entry is always required, which is not correct.And I don't immediately see how to fix this within the current grammar.
The text was updated successfully, but these errors were encountered: