We have seen pdf documents in the wild where the document is padded and the outermost element in the structure is of indefinate length