General Extract PDF Pages Functionality