Hello,
I can put a jpeg file into my postscript document. But I will like to put this image in each pages. So I would like to insert only once the image code.
How could I make a procedure to store the image into the printer for my current document?
Here is my current ps code :
0.240000 0.240000 scale
gsave 1067.00 1529.00 translate
save
/RawData currentfile /ASCIIHexDecode filter def
/Data RawData << >> /DCTDecode filter def
20 20 translate
572.00 586.11 scale
/DeviceRGB setcolorspace
{ << /ImageType 1
/Width 527
/Height 540
/BitsPerComponent 8
/ImageMatrix [ 527 0 0 -540 0 540 ]
/DataSource Data
/Decode [0 1 0 1 0 1]
>> image
Data closefile
RawData flushfile
restore
} exec
%%here is the image data
>grestore
Thanks for your help
Thierry PARET
I can put a jpeg file into my postscript document. But I will like to put this image in each pages. So I would like to insert only once the image code.
How could I make a procedure to store the image into the printer for my current document?
Here is my current ps code :
0.240000 0.240000 scale
gsave 1067.00 1529.00 translate
save
/RawData currentfile /ASCIIHexDecode filter def
/Data RawData << >> /DCTDecode filter def
20 20 translate
572.00 586.11 scale
/DeviceRGB setcolorspace
{ << /ImageType 1
/Width 527
/Height 540
/BitsPerComponent 8
/ImageMatrix [ 527 0 0 -540 0 540 ]
/DataSource Data
/Decode [0 1 0 1 0 1]
>> image
Data closefile
RawData flushfile
restore
} exec
%%here is the image data
>grestore
Thanks for your help
Thierry PARET