Re: scanning from a network attached printer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/9/18 11:32 AM, Patrick O'Callaghan wrote:
On Tue, 2018-10-09 at 11:09 -0400, Robert Moskowitz wrote:
So what is the equivalent way to do this from Fedora 28?
Have you installed hplip?

It was installed, and I can print to the printer.  I did some googling
and found that I needed hplib-gui and xsane.

Maybe only xsane is needed.

I got some things working, but the adf function is only saving the 1st
page of the stack.  I can do multipage by scanning one page at a time
into the multipage project which will then save all the pages into one
pdf.  This is too painful;; what is the adf for?

So now have to get xsane to actually pay attention to the adf sending
multiple pages.  One thing might be that it is saying the paper length
is 8.5x14 when I am scanning 8.5x11?  But I can't find where to config this.

I have an all-in-one HP3055. I use hplip to set up the printer side, scanimage to scan, and gscan2pdf to create pdfs from the tiff images.

scanimage is part of the sane-backends package.

hplip seesthe scanner at hpaio:/net/HP_LaserJet_3055?ip=192.168.99.112
I export that:  export hpaio="hpaio:/net/HP_LaserJet_3055?ip=192.168.99.112"

I use scanimage from the command line with a script. The main command line is:
Script 'scanner' sets the export variable and calls:
cd $1
scanimage --device-name=$hpaio --source auto --resolution 150 --format tiff --mode Color --contrast 125 -x 220 -y 290 --batch=$2%d.tiff --batch-start=$3 --batch-count=$4 --batch-increment=$5

$1 is the folder to dump the images in to;
$2 is the starting part of the file name:  some-page-
$3 is the starting count number x: -> some-page-x
$4 is the number of pages to scan y: -> some-page-(x+y)
$5 is the batch increment: -2 lets you number the pages downwards: especially useful when you have a stack of double-sided pages to scan.

The 'source auto' switch uses the adf: depends upon the 'page loaded' sensor to realize that the page feeder is in use.

Paper length is set in mm by the x 220 y 290 parameters: legal length: y 355

The scanadf program is supposed to do this too, but I had no luck getting it working on a networked printer back about Fedora 16 and have not tried since. I found it much easier to set up a script to handle scanning, and just call it with the 5 parameters set out above.

Once I have the scanned images, I use gscan2pdf to create the pdf files. gscan2pdf has scanning capabilities but also has problems with a networked scanner: it finds the scanner but cannot open it to scan.

The same scanner script using scanimage works nicely with USB scanners such as a Brother 1000ADS, using 'export ads='brother4:bus1;dev2'
and --device-name=$ads in the scanner script.

I have literally scanned thousands of pages with this setup.


Geoff			

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux