How to extract a page from a PDF document?