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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postscript help

Status
Not open for further replies.

dsepesi

Programmer
Apr 1, 2013
1
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top