Simple Python3 script which export a CSV containing all pdf under current folder with their page number
uses PyPDF2 from PdfFileReader library, which need to be installed with pip install PyPDF2
execute the script and redirect the output to a file: python3 export-total-pdf-pages.sh >> total.csv