By a document we understand an individual object containing marks.
Contributed by Caroline. View changelog.