Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - <b>hpdjctif</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HPDJCTIF

Print a TIFF image on a HP DeskJet 500C or 550C printer


Syntax

HPDJCTIF [<switches>] <cFILE.TIF> [<nDPI> <nLeft> <nTop> 
   <nNewWidth> <nNewHeight>]


Switch

/f
Do not send a form feed after print.

/mono
Print in monochrome (default is color).

/b<n>
Change brightness by <n> (-255 dark to 255 light). Default is 60.

/legal
Set page size to 8.5 x 14 inches.

/fast
Set fast data transfer mode (LPT ports only). 
Not redirectable with network print services.

/com<n>
Send output to com <n>.

/lpt<n>
Send output to lpt <n> (default is lpt1).

/prn
Send output to standard print.

/file:<FILE>
Send output to <FILE>.


Arguments

<cFILE.TIF>
The TIFF image to print.

<nDPI>
The dots per inch (75, 100, 150 or 300). Default is 75.

<nLeft>
Left offset into page in inches. Default is 0.0.

<nTop>
Top offset into page in inches. Default is 0.0.

<nNewWidth>
New width in inches. Default is 8.0.

<nNewHeight>
New height in inches. Default is 6.0.


DOS Error Messages

DPI should be one of 75, 100, 150, or 300
Left + newwidth should be less than 11.0
Top + newheight should be less than 17.0


DOS Error Levels

0
Success.

1
Can not open <cFILE.TIF>.

2
Can not allocate enough memory for line buffers.

3
<cFILE.TIF> is not a TIFF 4.2/5.0 file.

4
Print terminated by user.

5
Printer does not acknowledge.

6
Printer is out of paper.

7
Printer time out error.


Remarks

HPDLCTIF prints a TIFF 4.2/5.0 image file on a Hewlett Packard DeskJet 500C 
or a Hewlett Packard DeskJet 550C in graphic mode. It features optional 
disabling of formfeed, changing brightness, port, or file.

HPDJCTIF has the capability of printing images larger than screen sizes to 
32,767 x 32,767 pixels. These values far exceed current mechanical 
capabilities.

Incorrect coordinates, coordinate that are too large, or invalid coordinates 
will be truncated to the maximum valid print area by the printer.

An alternative print method is to print to disk file with "/file:" switch, 
then use SendBIN for fastest print speed.


Examples

To print the TIF file ASMUSSEN.TIF in color, at 4" x 3", located 2 inches 
from the left, 2 inches from the top of the page at 300 DPI with a 
brightness of 80:

hpdjctif /b80 asmussen.tif 300 2 2 4 3

To print the TIF same file in a two step process, to a DeskJet 550C 
compatible, first create a color binary image diskfile, ASMUSSEN.PRN, with 
embedded coordinates of 4" x 3", left offset of 2", top offset of 2", and 
brightness of 80. Second, print it out with either SENDBIN.EXE or the DOS 
COPY command:

hpdjctif /b80 /file:asmussen.prn asmussen.tif 300 2 2 4 3
copy /b asmussen.prn lpt1

To print three copies of the binary image diskfile to LPT2, where the 
printer is located on the current PC, i.e., a non-networked printer:

sendbin /c3 /lpt2 asmussen.prn


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson