From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,7b6f071c3c96f565,start X-Google-Attributes: gid10d4db,public From: Glenn Maughan Subject: HPMODESET: HP PJL printer control utility Date: 1995/11/06 Message-ID: #1/1 X-Deja-AN: 118813216 followup-to: comp.os.linux.misc content-type: text/plain; charset=ISO-8859-1 organization: ? mime-version: 1.0 newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- HPMODESET v1.2 - -------------- 6 November 1995 Copyright (c) Glenn Maughan 1995 Many of the newer model Hewlett-Packard printers do not have a control panel to change printer settings. In a Windows/DOS environment you are typically given drivers that allow you to change the printer settings. However, in a Unix environment such as Linux you usually do not get such nice drivers! I purchased a new LaserJet printer and found I could not control it completely under Linux. To reduce my frustrations I developed this utility. Hpmodeset provides a simple interface for changing printer control settings on printers that support the Hewlett-Packard Printer Job Language (PJL). Hpmodeset will encapsulate any number of print files, such as PostScript or PCL, within PJL control codes. The utility currently supports only a subset of PJL commands. The command line switches include: -economode/(-noeconomode) Economode on or off -manualfeed/(-nomanualfeed) manual paper feeding on or off (-portrait)/-landscape use portrait or landscape orientation -noret/-lightret/ Resolution Enhancement technology setting (-mediumret)/-darkret -draftquality/ the print quality for the current job (-normalquality)/ -highquality -copies (1) number of copies to print -resolution (600) printer resolution to use (300dpi or 600dpi) -density (3) toner density (1 to 5) The options/values in parenthesis are the default values. Following any printer control options should be a list of files to encapsulate. For example, to print the files `test.ps' and `test.pcl' in economode with manual paper feeds, the following hpmodeset command would perform the task: $ hpmodeset -economode -manualfeed test.ps test.pcl | lpr Hpmodeset can also read from stdin using `-' as the file marker. The following command would be the ultimate in paper and toner saving print commands: $ psnup -2 test.ps | hpmodeset -economode - | lpr (psnup is available in the excellent psutils package by Angus Duggan found on many Unix utility ftp sites. Sorry I can't remember the site I found it on, try archie!) FEEDBACK - -------- Please send all bugs, suggestions and support to: Glenn Maughan glennm@insect.sd.monash.edu.au The ftp site for Hpmodeset is: ftp://hornet.sd.monash.edu.au/pub/hpmodeset -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMJ5l7oQRll5MupLRAQGHlAQAnanTyQmHExRWMYuKL2s+p6wkW3176wmG zrP+CaWbWwxTtFrase/qSkC93Y5160Tx1lN+rR8AerOJju0GvKrJi7pF1H5lzfOO 0XOF/GReM5+LNGdUD5gHQfuXNVWrS3h7rvzREBcYcMNGsOR60xtUK4ogLIThVOJo Y13+epk2dBU= =89x9 -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.