How to split a multi-page document