Hi,
i was looking for help with postscript. i have 2 issues i need to insert a jpeg into an existing postscript file? 2 How to re-use an existing image defined in postscript on several pages without calling the entire image again. (example a logo on several pages) always same image in same location once perpage).
Tom please help!!
Thanks,
Dan
current image code does not work; should put image on 10 pages
%!PS-Adobe-3.1
%%Title: Example PostScript File
%%Creator: sample file
0 0 moveto
1 1 10 {
/Id exch def
/myDict 2 dict begin
gsave
/Width 304 def
/Height 235 def
Width Height scale
/DeviceRGB setcolorspace
<< /ImageType 1
/Width Width
/Height Height
/ImageMatrix [Width 0 0 0 Height sub 0 Height]
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
/DataSource (c:\\temp\\sample.jpg /F) (r) file
/DCTDecode filter>> image
grestore
/str 10 string def
10 10 moveto
/ArialMT 10 selectfont Id str cvs show
showpage
grestore
end
} for
%%EOF % show results
i was looking for help with postscript. i have 2 issues i need to insert a jpeg into an existing postscript file? 2 How to re-use an existing image defined in postscript on several pages without calling the entire image again. (example a logo on several pages) always same image in same location once perpage).
Tom please help!!
Thanks,
Dan
current image code does not work; should put image on 10 pages
%!PS-Adobe-3.1
%%Title: Example PostScript File
%%Creator: sample file
0 0 moveto
1 1 10 {
/Id exch def
/myDict 2 dict begin
gsave
/Width 304 def
/Height 235 def
Width Height scale
/DeviceRGB setcolorspace
<< /ImageType 1
/Width Width
/Height Height
/ImageMatrix [Width 0 0 0 Height sub 0 Height]
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
/DataSource (c:\\temp\\sample.jpg /F) (r) file
/DCTDecode filter>> image
grestore
/str 10 string def
10 10 moveto
/ArialMT 10 selectfont Id str cvs show
showpage
grestore
end
} for
%%EOF % show results