Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using TIFF files in Postscript

Status
Not open for further replies.

berndsw

Technical User
May 20, 2005
1
DE
Hi to all,

I have a small PostScript file which prints a tif image on a page. The tif image is stored on the printers hard disk.
The tag data from that tif image are:

motorola byteorder
imagewidth = 7008
imagelength = 4960
stripoffset = 210
copression = G4

After loading the tif as myfile,I have this Postscript code

myfile 210 setfileposition
7008 4960 true
[7008 0 0 -4960 0 4960]
myfile
<<
/K -1
/Columns 7008
/Rows 4960
/EndOfBlock false
>> /CCITTFaxDecode filter
imagemask
myfile closefile

Running this PostScript on a printer or with a PS-viewer everything looks fine.
(It took a lot of timeto make it running)

Now my problem.
I got a new tif file the tag data

intel byteorder
imagewidth = 5100
imagelength = 6600
stripoffset = 338
copression = G4

Replacing this corresponding values

myfile 338 setfileposition
5100 6600 true
[5100 0 0 -6600 0 6600]
myfile
<<
/K -1
/Columns 5100
/Rows 6600
/EndOfBlock false
>> /CCITTFaxDecode filter
imagemask
myfile closefile

the result is the Error: /ioerror in --image--
(in gs-view)
and nothing is displayed.

Any help is welcome.

Thanks and best regards
berndsw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top