Is there a method ,or a coding, that will give me the sourcefile name of the file I am busy extracting.
Purpose what I would like to achieve, is for the extracted single page to be saved, with the source pdf file name along with the page number from which it is extracting.
This will then not overwrite any files becuase every file will have a different name, obviously.
e.g. saveAs("/c/extracts/" + SOURCE_FILENAME + "_page_" + (page_counter +1));