![]() | Logo by Nickman (anonymous IP: 216.73.216.126,2408) | |||||||||||||
| ||||||||||||||
Audio (347) Datatype (51) Demo (204) Development (609) Document (24) Driver (98) Emulation (153) Game (1027) Graphics (510) Library (119) Network (236) Office (67) Utility (939) Video (72) Total files: 4456 Full index file Recent index file
Amigans.net Aminet IntuitionBase Hyperion Entertainment A-Eon Amiga Future
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-2025 by Björn Hagström All Rights Reserved |