📜 ⬆️ ⬇️

Convenient use of HP scanner in LAN

It so happened that we have an HP LaserJet MFP connected to the server in our local network office.
Its print part was shared by the entire network by standard means, but there were problems with scanning.
Actually, they were solved by writing two scripts (PHP + bash) for the server, which allow:


It looks like this:


')


Scan results

Sources: here or here or here .

Actually, you need to use:

  1. Correct the outdir variable in the scanme file and set it to chmod + x
  2. Correct lines 18 and 27 in the index.php file, setting in them the IP network and the path to the scanme script

Inside, the scanimage , tiffcp and tiff2pdf utilities are called - you may have to deliver them from the repository / packages.

upd. Habrayuzer otaqsun also suggested the project phpSANE - good for scanning images one by one, but does not understand the automatic document feeder and does not know how to overtake the results of scanning into PDF (but knows how to JPEG and PNM).

Source: https://habr.com/ru/post/82756/


All Articles