pdf-association/arlington-pdf-model

fn:InMap is ambiguous between name-trees and dictionaries supporting arbitrary keys

petervwyatt opened this issue · 0 comments

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 indices
  • fn:InNameTree for name trees - and which expect string objects as indices

If necessary in the future can also add fn:InNumberTree