Logo by Kicko (anonymous IP: 3.149.250.19,2258) | ||||||||||||||
| ||||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (149) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4399 Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
Support the site
|
$VER: PutToPrinter 1.2 (1.3.2018) PutToPrinter This is a simple ftp based solution to printing via my HP LaserJet Pro 2000 color M251n. Whilst writen with that printer in mind it ought to work with any ftp based printer. It will print postscript and PDF documents direct, and will filter plain text via ghostscript to create a suitable postscript version. Version 1.2 now allows passing of plain text direct to the printer and also sets a small selection of configuration items. The configuration options depend on the printers web inerface, so success may vary from model to model. Configuration Set the following variables to define the domain name / ip address and any username and password required my $printerdomain = "printer"; my $username = "anon"; my $password = "bar"; Usage Call as "puttoprinter.pl [--copies n] [ --a5landscape ] [--plaintext [ --landscape ] [--bold]] <filename" * "--copies n" Print n copies of the document * "--a5landscape" Feed a5 paper "sideways". * "--plainttext" Passes the file through to the printer as plan text. No checks are made that the file really is plain text. Any new line are converted to CR/LF sequences. * "--landscape" Only affects plain text, print the plain text in landscape mode. * "--bold" Only affect plain text, prints the plain text in a bolder font. Todo Create a simple ProAction GUI. Perhaps parse the printer status page to sync the proposed GUI with the current settings. Requirements A recent (>5.16) perl installation with Net::FTP File::Basename and File::Temp modules as well as HTTP:Request and LWP::UserAgent for setting options Credits Writen by Andy Broad <andy()broad.ology.org.uk> |
Copyright © 2004-2024 by Björn Hagström All Rights Reserved |