If are you using FTP to receive scanned documents which the printer itself uploads to your RPi, then you can have Inotify watch the arrival directory for new documents via
incron and a script:
Code:
$ incrontab -l
/home/ftp/uploads/ IN_CREATE,IN_MOVED_TO,IN_MODIFY /usr/local/bin/send_to_nas.sh $@$#
The, presumably if you NAS supports SFTP, the shell script can use the batch mode in the standard SFTP client to do an upload using an SSH key or an SSH certificate for uploads. Or if Synology NAS can support Rsync, that's another option and it, too, can use an SSH key or an SSH certificate for connecting.