Recognition of Document Structure on the Basis of Spatial and Geometric Relationships between Document Items