Add support for output path to pdf extract_pages