Split document into several files.