Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
pbmtoppa(1)
Edit
PageHistory
Diff
Info
LikePages
pbmtoppa !!!pbmtoppa NAME SYNOPSIS DESCRIPTION CONFIGURATION FILES EXAMPLES CALIBRATION REDHAT LINUX INSTALLATION SEE ALSO AUTHOR ---- !!NAME pbmtoppa - convert PBM image to HP Printer Performance Architecture (PPA) !!SYNOPSIS __pbmtoppa__ [[''pbm_file'' [[''ppa_file'']] !!DESCRIPTION __pbmtoppa__ converts page images in PBM format to Hewlett Packard's PPA (Printer Performance Architecture) format, which is the data stream format expected by some HP __ ''pbm_file'' is the file specification of the input file or __-__ for Standard Input. The default is Standard Input. The input file contains one or more PBM images, with each one being a single page. Each image must have the exact dimensions of a page (at 600 pixels per inch in both directions). Significantly, this is the format the Ghostscript produces. ''ppa_file'' is the file specification of the output file or __-__ for Standard Output. The default is Standard Output. To print Postscript on an HP PPA printer, just use Ghostscript with the __pbmraw__ (or __pbm__) device driver. You can generate a test page for use with this program with __pbmpage__. You can also set up a printer filter so you can submit PBM input directly to your print queue. See the documentation for your print spooler for information on how to do that, or look in hp820install.doc for an example lpd print filter for Postscript and text files. Sometimes, __pbmtoppa__ generates a file which the printer will not print (because __pbmtoppa__'s input is unprintable). When this happens, all three lights blink to signal the error. This is usually because there is material outside of the printer's printable area. To make the file print, increase the margins via __pbmtoppa__ options or a configuration file. See the CALIBRATION section below. __-v__ ''version'' printer version (720, 820, or 1000) __-x__ ''xoff'' vertical offset adjustment in 1 __-y__ ''yoff'' horizontal offset adjustment in 1 __-t__ ''topmarg'' top margin in 1 __-l__ ''leftmarg'' left margin in 1 __-r__ ''rightmarg'' right margin in 1 __-b__ ''botmarg'' bottom margin in 1 __-s__ ''paper'' paper size: __us__ or __a4__. Default is __us__. __-f__ ''cfgfile'' read parameters from configuration file ''cfgfile'' The __-x__ and __-y__ options accumulate. The __-v__ option resets the horizontal and vertical adjustments to an internal default. !!CONFIGURATION FILES You can use configuration files to specify parameters rather than use invocation options. __pbmtoppa__ processes the file /etc/pbmtoppa.conf, if it exists, before processing any options. It then processes each configuration file named by a __-f__ option in order, applying the parameters from the configuration file as if they were invocation options used in the place of the __-f__ option. Configuration files have the following format: __#__''Comment key1 value1 key2 value2'' [[etc.] Valid ''key''s are __version__, __xoffset__, __yoffset__, __topmargin__, __leftmargin__, __rightmargin__, __bottommargin__, __papersize__, or any non-null prefix of these words. Valid values are the same as with the corresponding invocation parameters. !!EXAMPLES Print a test pattern: __pbmpage | pbmppa __ Print three pages: __cat page1.pbm page2.pbm page3.pbm | pbmppa __ Print the Postscript file myfile.ps: __gs -sDEVICE=rawpbm -q -dNOPAUSE -r600 \ -sOutputFile=- myfile.ps \ | pbmtoppa | lpr__ !!CALIBRATION To be able to print successfully and properly, you need to tell __pbmtoppa__ an X and a Y offset appropriate for your printer to use when generating the page. You can specify these offsets with the __-x__ and __-y__ invocation options or with the __xoff__ and __yoff__ parameters in a __pbmtoppa__ configuration file. To determine the correct offsets, use the __pbmpage__ program. If while trying to do this calibration, the printer refuses to print a page, but just blinks all three lights, specify large margins (e.g. 600 pixels -- one inch) via __pbmpage__ invocation options while doing the calibration. For example: __pbmpage | pbmtoppa __ or__ pbmpage | pbmtoppa | lpr -l__ (if your printer filter recognizes the '-l' (direct output) parameter). In the test pattern, the grid is marked off in pixel coordinate numbers. Unfortunately, these coordinates are probably cut off before the edge of the paper. You'll have to use a ruler to estimate the pixel coordinate of the left and top edges of the actual sheet of paper (should be within +/- 300, may be negative; there are 600 pixels per inch). Add these coordinates to the X and Y offsets by either editing the configuration file or using the __-x__ and __-y__ command-line parameters. When __pbmtoppa__ is properly calibrated, the center mark should be in the center of the paper. Also, the margins should be able to be as small as 1/4 inch without causing the printer to choke with 'blinking lights syndrome'. !!REDHAT LINUX INSTALLATION !RedHat users may find the following tip from Panayotis Vryonis Here is a tip to intergrate HP720C support in !RedHat's printtool: Install pbm2ppa. Copy pbm2ppa to /usr/bin. Edit ----------------------Cut here----------------------- !StartEntry: DeskJet720C GSDriver: pbm Description: {HP !DeskJet 720C} About: { \ This driver supports the HP !DeskJet 720C \ inkjet printer. \ It does does not support color printing. \ IMPORTANT! Insert \ Resolution: {600} {600} {} !EndEntry ---------------------------------------------------- Now you can add an HP720C printer just like any other, using printtool. !!SEE ALSO pbmpage(1), pstopnm(1), pbm(5) __pnm2ppa__ is not part of Netpbm, but does the same things as __pbmtoppa__ except it also works with color and has lots more features. See __ The file INSTALL-MORE in the pbmtoppa directory of the Netpbm source code contains detailed instructions on setting up a system to use pbmtoppa to allow convenient printing on HP PPA printers. It was written by Michael Buehlmann. For information about the PPA protocol and the separately distributed pbm2ppa program from which __pbmtoppa__ was derived, see __ !!AUTHOR Tim Norman. Copyright (C) 1998. Licensed under GNU Public License Manual page by Bryan Henderson, May 2000. ----
2 pages link to
pbmtoppa(1)
:
pbmpage(1)
Man1p
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.