How To Add scan

Hello everyone,
My problem is that I’m scanning the document with a sharp photocopier to my computer then upload it to the attachment in my DocType.

I want to add a button next to the print button in the header to scan automatically to the attachment.
any help ?? ??