Skip to Content
0
Jul 16 at 10:28 AM

Copy PDF to multiple directories via SFTP (same receiver)

87 Views

Hello,

I have to copy the incoming PDF depending on its content in several subfolders (SFTP).

Example:
PDF contains strings I extract in a custom Java mapping (with an external JAR that offers PDF read functionality).
These strings give me the information I need to build the target directory names for the PDF on the SFTP receiver.
Strings in PDF: 04, 07, 10
Folders: /test/04/, /test/07/, /test/10/, ...

The PDF itself will not be changed, only saved in the multiple location using the same receiver SFTP channel.


How can I achieve this? Any ideas?
The only alternative I can imagine is an external script, that can do this.
But I guess it is possible in PI?

Thanks for your input.