Cutting the document into parts.