Extract pages

Creates a PDF containing only the selected pages.