I have a multi-page PDF file that I am splitting, because each page is a invoice. I am retrieving file name, file extension and file path from the PDF:
Now when I am splitting the PDF, I am creating a new file by adding an _Counter (_1, _2, _3 etc.)
to each file name.
What am I doing wrong here: