fn:InMap is ambiguous between name-trees and dictionaries supporting arbitrary keys
petervwyatt opened this issue · 0 comments
petervwyatt commented
The current usage of predicate fn:InMap
is ambiguous between PDF name-trees (which use strings!) and dictionaries that support arbitrary keys (names).
See also PDF Errata #258
Solution is to separate as distinct predicates:
fn:InKeyMap
for dictionaries supporting arbitrary keys, and which expect name objects as indicesfn:InNameTree
for name trees - and which expect string objects as indices
If necessary in the future can also add fn:InNumberTree