Avatar

Level 3

Never done this, but was thinking about the options..

How are you attaching the PDF? If you are using calculated PDF, then you should write another job which will move/remove the pdf from the designated folder once the data arrive. You should be able to use JS File class to remove/copy the file. If it make sense, use the lastModified property to determine when to remove a pdf file.

I think same you should be able to do for images, but is more tricky to locate I believe.