Use PyPDF2 for merging and getting the page numbers.