I work at a place where I have been tasked to scan tons and tons of instructions such that they can be digitalised (about 10k pages). The scanner that I have, can take about 50-60 A4 pages at a time, which it saves as one "big" PDF file. The thing is, my boss wants each page to be a PDF by itself, and furthermore it has to be named the page number that it says inside. Not just 1, because it is the first page in the document. These instructions jump around in the numbering so it isn't that easy.
What I need help with:
1: How do I retrieve the page number from INSIDE the PDF
2: How do I do this multiple times (for each PDF document)?
I already have my program setup to create one PDF per page... I hope someone can help :)