This function extracts pageCount pages from the srcPdfFilePath PDF file starting with the page at startPage index
and creates a new Document containing the extracted pages. The resulted document can be further saved
into a file on disk or into a stream.
The Document containing the extracted pages.