Add part of filename as text to PDF


I am new to KB and wonder if (and how) it can perform the following task:

With selected PDF files - for each file:

  • open file i.e. in Preview
  • (select font and font size)
  • add the first part of the filename (up to the first _) as text to the lower right corner
  • save the PDF

Thanks a lot!