Extract page range for pdfs

Source commit: https://github.com/joshRpowell/docsplit/commit/a1fe3a412dda64237f4df400d07aca9afd5efe7b