Network Scanner

The idea is to be able to use a USB scanner from raspberry pi to scan a document and save it to my cloud.

I want the scanning interface to be available through a web page in order to control the scan from my smartphone.

scanimage -x 210 -y 297 --resolution 150 > page1.pnm
scanimage -x 210 -y 297 --resolution 150 > page2.pnm
convert page1.pnm page2.pnm document.pdf