📄 hpijs_readme.html
字号:
<HTML> <HEAD> <TITLE>HP Inkjet Driver Project</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"><A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=16846" width="88" height="31" border="0" alt="SourceForge Logo"></A><a href="http://hpinkjet.sourceforge.net">hpinkjet.sourceforge.net</a> <H1>Hewlett-Packard Co. Inkjet Driver Project</H1> The Hewlett-Packard Inkjet Driver Project is a add-on to the GNU Ghostscript application. This driver is open source software based on the Hewlett Packard Appliance Printing Development Kit <A HREF="http://hpapdk.com">APDK</A> for deskjet printers. <h2>Table of contents</h2><ul><li><a href="#Overview">1 Overview</a><li><a href="#License">2 License</a><li><a href="#System">3 System Requirements</a><li><a href="#Device">4 Driver Support</a><ul><li><a href="#Class">4.1 Device Descriptions</a><li><a href="#Paper">4.2 Paper Sizes</a><li><a href="#Printable">4.3 Printable Area</a></ul><li><a href="#Updates">5 Updates</a><li><a href="#Building">6 Installation</a><ul><li><a href="#insthpijs">6.1 HP Inkjet Driver</a><li><a href="#instghost">6.2 Ghostscript</a><li><a href="#printtool">6.3 PrintTool</a></ul><li><a href="#Usage">7 Usage</a><ul><li><a href="#Spool">7.1 Spooler Example</a><li><a href="#Command">7.2 Ghostscript Example</a></ul><li><a href="http://sourceforge.net/projects/hpinkjet/">8 Project Development</a></ul> <hr> <H2><a name="Overview"></a>1 Overview</H2>The Hewlett-Packard Inkjet Driver Project (HPIJS) is a add-on printer driver for GNU Ghostscript.This driver is open source software based on the Hewlett-Packard Appliance Printing Development Kit <A HREF="http://hpapdk.com">APDK</A> for deskjet printers. The driver will take RGB rasters from Ghostscript and converts them to printer-ready-bits.<p>Ghostscript uses a generalized IPC interface for HPIJS communications. This interface is called the IJS interface. The IJS interface, which was written by Raph Levien of Ghostscript, was inspired by the first HPIJS interface.The IJS interface can be used by any printer manufacturer. <p> There are two parts to the IJS interface - IJS client that resides in GNU Ghostscript and the IJS server. The IJS server is built into the printer driver, in our case the HP Inkjet driver. In this document the term IJS server, HPIJS server, HPIJS, or HP Inkjet Driver are all synonymous. They all refer to the same software component. HPIJS runs as a server or co-process to GNU Ghostscript. The server is spawned automatically by GNU Ghostscript.The following figure is a high level overview of the IJS interface between GNU Ghostscript and HPIJS.<p><center><IMG SRC="gs_hpijs.png"></center><p>GNU Ghostscript is a software application that interprets PostScript and displays the results onthe screen or converts the PostScript into a form you can print on a non-PostScript printer. <p>PostScript is a programming language optimized for printing graphics and text, it is sometimes called a pagedescription language. Most Linux applications support PostScript. Postscript is the standard for printing inany Linux or Unix environment.<p>Ghostscript supports many output devices, including many different printers. This document addresses how to build, install and use HPIJS with Ghostscript. This document is intended for distributions and experienced users. Other users should refer to their appropriate Linux distribution for HPIJS support.<p>Although HPIJS runs as a separate process from Ghostscript, HPIJS still looks like just another Ghostscript printer driver. Adding printer drivers is a well documented interface that is described in the GNU Ghostscript documentation at <A HREF="http://www.cs.wisc.edu/~ghost/doc/gnu/index.htm">http://www.cs.wisc.edu/~ghost/doc/gnu/index.htm</A>.Together with Ghostscript and HPIJS, PostScript can be converted to a printer language that is compatible with many of the latest HP printer products. See <a href="#Building">Installation</a> on how to download andinstall HPIJS. <p>HPIJS supports both the new IJS interface and the old HPIJS interface. Support for the HPIJS interface is provided for backward compatibility only. All new features will be supported on the IJS interface only. This document only addresses how to use HPIJS using the IJS interface.The old HPIJS interface is defined in the <A HREF="http://sourceforge.net/project/showfiles.php?group_id=16846">HPIJS 0.97</A> release.More information on the IJS interface can be found at <A HREF="http://www.linuxprinting.org/cgi-bin/mailman/listinfo/inkjet-list">inkjet-list</A>.<p>Ghostscript is not a gui application. Ghostscript is a command line application that runs from a Linux shell, similar to a Microsoft DOS command run from a DOS window.<p>Ghostscript can be used by itself to print to a non-Postscript printer, but generally a print spooler must be used.The print spooler must be configured to use Ghostscript when printing to a non-Postscript printer.Many Linux distributions all ready support HPIJS in their spooler system, see their web site for spooler support questions.Additional information is available at <a href="http://www.linuxprinting.org"> www.linuxprinting.org</a>. <p> <hr> <H2><a name="License"></a>2 License</H2>GNU Ghostscript uses the GNU General Public License (GPL) and the IJS interface uses the MIT License. After HPIJS 1.0.1 the driver uses a BSD license. HPIJS 1.0 and below uses a BSD type license with a "HP product only" clause. <hr> <H2><a name="System"></a>3 System Requirements</H2>HPIJS works with GNU Ghostscript 6.53 or higher. The HPIJS download includes all the necessary files to build the HP Inkjet Driver from source code. Since the current Ghostscript release now has built-in support for the IJS interface, no other Ghostscript files are necessary to run HPIJS.<p>HPIJS is platform-independent and works on many different Unix and Linux systems. In order to install HPIJS the downloadincludes an automake/autoconf makefile. This portable build procedure requires an ANSI C compiler, ANSI C++ compiler and a POSIX compliant environment.<p>This version of HPIJS supports both the new IJS interface and the old HPIJS interface. HPIJS requires Ghostscript to support one of these two interfaces. <p>HPIJS emits standard file output. The output can be directed to a file or to the actual device via the parallel or USB port. Some all-in-one devices, such as OfficeJets require the <A HREF="http://hpoj.sourceforge.net">HP Linux OfficeJet Driver</A> (HPOJ). In this case HPIJS output is sent to HPOJ and then the data is passed to the actual device. <p>Many platforms (Red Hat, Mandrake, SuSE, Yellow Dog, FreeBSD, Debian, HPUX, AIX, etc) have been confirmed to work, please see those sites for more information.<hr><H2><a name="Device"></a>4 Driver Support</H2>There are currently more than 230 HP printer models supported with HPIJS. HP printer support is defined by the current Hewlett Packard Appliance Printing Development Kit APDK. See the APDK documentation at <A HREF="http://hpapdk.com">http://hpapdk.com</A> for more information. <p>HPIJS supports all the current HP printer models with different Ghostscript command line parameters.Different printer models can be selected with the IEEE 1284 Manufacturer and Model strings. This informationcan come from the query of a printer over the parallel or usb port.<p> The following Ghostscript commands are required when using HPIJS. <pre> -sDEVICE=ijs -sIjsServer=hpijs -dIjsUseOutputFD -sDeviceManufacturer=x (x equals: "HEWLETT-PACKARD", "HP", "APOLLO") -sDeviceModel=x (x equals: "DESKJET 990", "DESKJET 670", etc...)</pre>The following Ghostscript commands are optional when using HPIJS. <pre> -dDuplex=false -dTumble=false (none) -dDuplex=true -dTumble=false (book) -dDuplex=true -dTumble=true (tablet) -sIjsParams="Quality:Quality=n,Quality:ColorMode=n,Quality:MediaType=n, Quality:PenSet=n,Quality:FullBleed=n,PS:MediaPosition=n" Quality equals: 0=normal (default), 1=draft, 2=best, 3=hires ColorMode equals: 0=grey_k, 1=grey_cmy, 2=color (default) MediaType equals: 0=plain (default), 1=premium, 2=photo PenSet equals: 0=black_pen, 1=color_pen, 2=both_pens, 3=mdl_pen, 4=mdl_both FullBleed equals: 0=no (default), 1=yes MediaPosition equals: 1=upper_tray, 4=lower_tray, 7=autoselect (default) </pre>PenSet Definitions<pre> black_pen: only black pen in the printer color_pen: only color pen in the printer both_pens: black & color pens in printer mdl_pen: photo pen in the printer mdl_both: color pin and photo pen in printer</pre>Note, there are defaults for all optional commands. PenSet default is defined by each device class. <p>The Quality, MediaType, ColorMode, PenSet and FullBleed are used to set the print mode.Not all combinations of Quality, MediaType, ColorMode, PenSet and FullBleed are valid print modes. If an invalid print mode is set, the job will still print, becauseHPIJS will default to a print mode that makessense given the input. HPIJS will send any error message to stderr and syslog.Print modes are device class specific, see the following device descriptions for more details.<p>MediaPosition can be any valid PCL Media Source value.MediaPositon defaults to "autoselect" which means the printer will decide which tray to use. MediaPosition is recognized by DJ9xxVIP, DJGenericVIP and HP LaserJet only. All other device classes ignore this command. <p><H4><a name="Class"></a>4.1 Device Descriptions</H4>HPIJS is a monolithic driver that supports many different printers. Common printersare divided into different device classes. Each device class share common printer attributes such as print modes and paper sizes.HPIJS will automatically map the DeviceModel parameter to one of the devices classes.<p>The following devices classes are currently supported by HPIJS. Each device class support 300x300dpi unless specified otherwise.The DeviceModel parameters listed for each device class are case sensitive. <ul><li><b>DeskJet 350 series (DJ350)</b> - The DJ350 device class only supports one pen at a time. Resolution setting 600x300 is required for Best Grayscale mode.The following options can be selected with Ghostscript commands. <pre> <b>DeviceModel</b> DESKJET 350 <b>Draft Grayscale</b> Quality=1 ColorMode=0 MediaType=0 PenSet=0 <b>Draft Color</b> Quality=1 ColorMode=2 MediaType=0 PenSet=1 <b>Normal Grayscale</b> Quality=0 ColorMode=0 MediaType=0 PenSet=0 <b>Normal Color</b> (default) Quality=0 ColorMode=2 MediaType=0 PenSet=1 <b>Best Grayscale</b> Quality=2 ColorMode=0 MediaType=0 PenSet=0</pre><p><li><b>DeskJet 540 series (DJ540)</b> - The DJ540 device class targets the DeskJet 540, but it should work for any DeskJet 500 and Deskjet 400 series.OfficeJet LX and OfficeJet Series 300 only support grayscale.This device class only supports one pen at a time.The following options can be selected with Ghostscript commands. <pre> <b>DeviceModel</b> DESKJET 540 OfficeJet (OfficeJet LX) OfficeJet Series 300 <b>Draft Grayscale</b> Quality=1 ColorMode=0 MediaType=0 PenSet=0 <b>Draft Color</b> Quality=1 ColorMode=2 MediaType=0 PenSet=1 <b>Normal Grayscale</b> Quality=0 ColorMode=0 MediaType=0 PenSet=0 <b>Normal Color</b> (default) Quality=0 ColorMode=2 MediaType=0 PenSet=1</pre><p><li><b>DeskJet 630C series (DJ630)</b> - The DJ630 device class will support single pen printing. Resolution setting 600x300 is required for Best Grayscale mode. The following options can be selected with Ghostscript commands. <pre> <b>DeviceModel</b> DESKJET 630 DESKJET 632 DESKJET 656 <b>Draft Grayscale</b> Quality=1 ColorMode=0 MediaType=0 PenSet=0 <b>Draft Color</b> Quality=1 ColorMode=2 MediaType=0 PenSet=1 Quality=1 ColorMode=2 MediaType=0 PenSet=2 <b>Normal Grayscale</b> Quality=0 ColorMode=0 MediaType=0 PenSet=0 <b>Normal Color</b> Quality=0 ColorMode=2 MediaType=0 PenSet=1 (default) Quality=0 ColorMode=2 MediaType=0 PenSet=2 <b>Best Grayscale</b> Quality=2 ColorMode=0 MediaType=0 PenSet=0 <b>Photo</b> Quality=2 ColorMode=2 MediaType=1 PenSet=4 </pre><p><li><b>DeskJet 600C series (DJ6xx)</b> - Resolution setting 600x300 is required for Best Grayscale mode. The following options can be selected with Ghostscript commands.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -