Article View: fj.lang.postscript
Article #673printing problems
From: Sharif Mohammed Shahrier
Date: Sun, 14 Jul 1996 00:00
Date: Sun, 14 Jul 1996 00:00
496 lines
15277 bytes
15277 bytes
I am having porblems printing a postscript file on any of our
postscript laser printers. The postscript file had been produced by an
SDT tool from telelogic and it contains some block diagrams. But none
of the printers will print it, in fact I can't even display it on
ghostview. I have attached the postscript file below. Following this
file I have also attached an example postscript file that DOES print
on our printers. I am not that familiar with the postscript language,
so it would be most helpful to me if someone would compare the 2
versions of the files and advise me on what I need to modify in the
first postscript description in order to make it print. Please send
me an e-mail directly because I don't usually access this newsgroup.
HERE IS THE POSTSCRIPT THAT DOES NOT PRINT.
=======================================================================
%!PS-Adobe-3.0
%%Creator: (SDT 3.0)
%%CreationDate: (07/14/96 17:57:05)
%%BoundingBox: (atend)
%%Pages: (atend)
%%PageOrder: (atend)
%%DocumentFonts: (atend)
%%DocumentMedia: A4 595 842 0 () ()
%%DocumentData: Clean7Bit
%%EndComments
%%BeginProlog
/SDTDict 200 dict def
/DocumentSetup {
SDTDict begin
/paperheight exch def
/paperwidth exch def
/rmargin exch def
/lmargin exch def
/bmargin exch def
/tmargin exch def
end
} def
/BeginPage {
SDTDict begin
/pagesave save def
gsave
0.28346457 0.28346457 scale
gsave
0 0 moveto
paperwidth 0 lineto
paperwidth paperheight lineto
0 paperheight lineto
0 0 lineto
1 setgray fill
grestore
/landscape exch 0 ne def
landscape {
90 rotate 0 paperwidth neg translate
/vpwidth paperheight lmargin sub rmargin sub def
/vpheight paperwidth tmargin sub bmargin sub def
}{
/vpwidth paperwidth lmargin sub rmargin sub def
/vpheight paperheight tmargin sub bmargin sub def
} ifelse
} def
/EndPage { grestore pagesave restore end showpage } def
/BeginEPSF {
/EPSsave save def
/EPSdictCount countdictstack def
/EPSopCount count 1 sub def
userdict begin
/showpage {} def
0 setgray 0 setlinecap
1 setlinewidth 0 setlinejoin
10 setmiterlimit [] 0 setdash newpath
/languagelevel where
{ pop languagelevel
1 ne
{ false setstrokeadjust false setoverprint
} if
} if
} bind def
/EndEPSF {
count EPSopCount sub { pop } repeat
countdictstack EPSdictCount sub { end } repeat
EPSsave restore
} bind def
/R { gsave
moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto
closepath stroke grestore } bind def
/F { % brushcolor width height x y
gsave
moveto
1 index 0 rlineto
0 exch rlineto neg 0 rlineto
closepath
setgray fill
grestore
} bind def
/FF { % pencolor brushcolor width height x y
gsave
moveto
1 index 0 rlineto
0 exch rlineto neg 0 rlineto
closepath
gsave setgray fill grestore
setgray stroke
grestore
} bind def
/L { moveto lineto stroke } bind def
/T { moveto show } bind def
/A { gsave
matrix currentmatrix 10 1 roll
translate scale newpath arc
setmatrix
stroke
grestore } bind def
/FA { gsave
matrix currentmatrix 11 1 roll
translate scale 0 0 moveto arc closepath
gsave setgray dup setmatrix fill grestore
setmatrix
stroke grestore } bind def
/M {
-20 30 moveto 0 50 lineto 20 30 lineto closepath
gsave 0.5 setgray fill grestore stroke
} bind def
/P {
gsave
translate rotate
M
dup stringwidth pop 2 div neg 0 moveto
show
grestore
} bind def
/P2 {
gsave
translate rotate
M
dup stringwidth pop 2 div 25 translate 180 rotate
0 0 moveto
show
grestore
} bind def
%%EndProlog
%%BeginSetup
420 3990 100 100 2100 2970 DocumentSetup
%%EndSetup
%%Trailer
%%BoundingBox: 0 0 538.582677 -408.188976
%%PageOrder: Ascend
%%Pages: 0
%%DocumentNeededResources: font
%%EOF
=======================================================================
HERE IS THE POSTSCRIPT THAT DOES PRINT.
=======================================================================
%!PS-Adobe-2.0
%%Title: 'avg_tput.ps'
%%Creator: gnuplot
%%DocumentFonts: (atend)
%%BoundingBox: 50 50 554 770
%%Orientation: Portrait
%%Pages: (atend)
%%EndComments
/gnudict 120 dict def
gnudict begin
/Color false def
/Solid false def
/gnulinewidth 5.000 def
/vshift -83 def
/dl {10 mul} def
/hpt 31.5 def
/vpt 31.5 def
/M {moveto} bind def
/L {lineto} bind def
/R {rmoveto} bind def
/V {rlineto} bind def
/vpt2 vpt 2 mul def
/hpt2 hpt 2 mul def
/Lshow { currentpoint stroke M
0 vshift R show } def
/Rshow { currentpoint stroke M
dup stringwidth pop neg vshift R show } def
/Cshow { currentpoint stroke M
dup stringwidth pop -2 div vshift R show } def
/DL { Color {setrgbcolor Solid {pop []} if 0 setdash }
{pop pop pop Solid {pop []} if 0 setdash} ifelse } def
/BL { stroke gnulinewidth 2 mul setlinewidth } def
/AL { stroke gnulinewidth 2 div setlinewidth } def
/PL { stroke gnulinewidth setlinewidth } def
/LTb { BL [] 0 0 0 DL } def
/LTa { AL [1 dl 2 dl] 0 setdash 0 0 0 setrgbcolor } def
/LT0 { PL [] 0 1 0 DL } def
/LT1 { PL [4 dl 2 dl] 0 0 1 DL } def
/LT2 { PL [2 dl 3 dl] 1 0 0 DL } def
/LT3 { PL [1 dl 1.5 dl] 1 0 1 DL } def
/LT4 { PL [5 dl 2 dl 1 dl 2 dl] 0 1 1 DL } def
/LT5 { PL [4 dl 3 dl 1 dl 3 dl] 1 1 0 DL } def
/LT6 { PL [2 dl 2 dl 2 dl 4 dl] 0 0 0 DL } def
/LT7 { PL [2 dl 2 dl 2 dl 2 dl 2 dl 4 dl] 1 0.3 0 DL } def
/LT8 { PL [2 dl 2 dl 2 dl 2 dl 2 dl 2 dl 2 dl 4 dl] 0.5 0.5 0.5 DL } def
/Pnt { stroke [] 0 setdash
gsave 1 setlinecap M 0 0 V stroke grestore } def
/Dia { stroke [] 0 setdash 2 copy vpt add M
hpt neg vpt neg V hpt vpt neg V
hpt vpt V hpt neg vpt V closepath stroke
Pnt } def
/Pls { stroke [] 0 setdash vpt sub M 0 vpt2 V
currentpoint stroke M
hpt neg vpt neg R hpt2 0 V stroke
} def
/Box { stroke [] 0 setdash 2 copy exch hpt sub exch vpt add M
0 vpt2 neg V hpt2 0 V 0 vpt2 V
hpt2 neg 0 V closepath stroke
Pnt } def
/Crs { stroke [] 0 setdash exch hpt sub exch vpt add M
hpt2 vpt2 neg V currentpoint stroke M
hpt2 neg 0 R hpt2 vpt2 V stroke } def
/TriU { stroke [] 0 setdash 2 copy vpt 1.12 mul add M
hpt neg vpt -1.62 mul V
hpt 2 mul 0 V
hpt neg vpt 1.62 mul V closepath stroke
Pnt } def
/Star { 2 copy Pls Crs } def
/BoxF { stroke [] 0 setdash exch hpt sub exch vpt add M
0 vpt2 neg V hpt2 0 V 0 vpt2 V
hpt2 neg 0 V closepath fill } def
/TriUF { stroke [] 0 setdash vpt 1.12 mul add M
hpt neg vpt -1.62 mul V
hpt 2 mul 0 V
hpt neg vpt 1.62 mul V closepath fill } def
/TriD { stroke [] 0 setdash 2 copy vpt 1.12 mul sub M
hpt neg vpt 1.62 mul V
hpt 2 mul 0 V
hpt neg vpt -1.62 mul V closepath stroke
Pnt } def
/TriDF { stroke [] 0 setdash vpt 1.12 mul sub M
hpt neg vpt 1.62 mul V
hpt 2 mul 0 V
hpt neg vpt -1.62 mul V closepath fill} def
/DiaF { stroke [] 0 setdash vpt add M
hpt neg vpt neg V hpt vpt neg V
hpt vpt V hpt neg vpt V closepath fill } def
/Pent { stroke [] 0 setdash 2 copy gsave
translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
closepath stroke grestore Pnt } def
/PentF { stroke [] 0 setdash gsave
translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
closepath fill grestore } def
/Circle { stroke [] 0 setdash 2 copy
hpt 0 360 arc stroke Pnt } def
/CircleF { stroke [] 0 setdash hpt 0 360 arc fill } def
/C0 { BL [] 0 setdash 2 copy moveto vpt 90 450 arc } bind def
/C1 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 90 arc closepath fill
vpt 0 360 arc closepath } bind def
/C2 { BL [] 0 setdash 2 copy moveto
2 copy vpt 90 180 arc closepath fill
vpt 0 360 arc closepath } bind def
/C3 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 180 arc closepath fill
vpt 0 360 arc closepath } bind def
/C4 { BL [] 0 setdash 2 copy moveto
2 copy vpt 180 270 arc closepath fill
vpt 0 360 arc closepath } bind def
/C5 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 90 arc
2 copy moveto
2 copy vpt 180 270 arc closepath fill
vpt 0 360 arc } bind def
/C6 { BL [] 0 setdash 2 copy moveto
2 copy vpt 90 270 arc closepath fill
vpt 0 360 arc closepath } bind def
/C7 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 270 arc closepath fill
vpt 0 360 arc closepath } bind def
/C8 { BL [] 0 setdash 2 copy moveto
2 copy vpt 270 360 arc closepath fill
vpt 0 360 arc closepath } bind def
/C9 { BL [] 0 setdash 2 copy moveto
2 copy vpt 270 450 arc closepath fill
vpt 0 360 arc closepath } bind def
/C10 { BL [] 0 setdash 2 copy 2 copy moveto vpt 270 360 arc closepath fill
2 copy moveto
2 copy vpt 90 180 arc closepath fill
vpt 0 360 arc closepath } bind def
/C11 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 180 arc closepath fill
2 copy moveto
2 copy vpt 270 360 arc closepath fill
vpt 0 360 arc closepath } bind def
/C12 { BL [] 0 setdash 2 copy moveto
2 copy vpt 180 360 arc closepath fill
vpt 0 360 arc closepath } bind def
/C13 { BL [] 0 setdash 2 copy moveto
2 copy vpt 0 90 arc closepath fill
2 copy moveto
2 copy vpt 180 360 arc closepath fill
vpt 0 360 arc closepath } bind def
/C14 { BL [] 0 setdash 2 copy moveto
2 copy vpt 90 360 arc closepath fill
vpt 0 360 arc } bind def
/C15 { BL [] 0 setdash 2 copy vpt 0 360 arc closepath fill
vpt 0 360 arc closepath } bind def
/Rec { newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
neg 0 rlineto closepath } bind def
/Square { dup Rec } bind def
/Bsquare { vpt sub exch vpt sub exch vpt2 Square } bind def
/S0 { BL [] 0 setdash 2 copy moveto 0 vpt rlineto BL Bsquare } bind def
/S1 { BL [] 0 setdash 2 copy vpt Square fill Bsquare } bind def
/S2 { BL [] 0 setdash 2 copy exch vpt sub exch vpt Square fill Bsquare } bind def
/S3 { BL [] 0 setdash 2 copy exch vpt sub exch vpt2 vpt Rec fill Bsquare } bind def
/S4 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt Square fill Bsquare } bind def
/S5 { BL [] 0 setdash 2 copy 2 copy vpt Square fill
exch vpt sub exch vpt sub vpt Square fill Bsquare } bind def
/S6 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill Bsquare } bind def
/S7 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill
2 copy vpt Square fill
Bsquare } bind def
/S8 { BL [] 0 setdash 2 copy vpt sub vpt Square fill Bsquare } bind def
/S9 { BL [] 0 setdash 2 copy vpt sub vpt vpt2 Rec fill Bsquare } bind def
/S10 { BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt Square fill
Bsquare } bind def
/S11 { BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt2 vpt Rec fill
Bsquare } bind def
/S12 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill Bsquare } bind def
/S13 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill
2 copy vpt Square fill Bsquare } bind def
/S14 { BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill
2 copy exch vpt sub exch vpt Square fill Bsquare } bind def
/S15 { BL [] 0 setdash 2 copy Bsquare fill Bsquare } bind def
/D0 { gsave translate 45 rotate 0 0 Box stroke grestore } bind def
/D1 { gsave translate 45 rotate 0 0 S1 stroke grestore } bind def
/D2 { gsave translate 45 rotate 0 0 S2 stroke grestore } bind def
/D3 { gsave translate 45 rotate 0 0 S3 stroke grestore } bind def
/D4 { gsave translate 45 rotate 0 0 S4 stroke grestore } bind def
/D5 { gsave translate 45 rotate 0 0 S5 stroke grestore } bind def
/D6 { gsave translate 45 rotate 0 0 S6 stroke grestore } bind def
/D7 { gsave translate 45 rotate 0 0 S7 stroke grestore } bind def
/D8 { gsave translate 45 rotate 0 0 S8 stroke grestore } bind def
/D9 { gsave translate 45 rotate 0 0 S9 stroke grestore } bind def
/D10 { gsave translate 45 rotate 0 0 S10 stroke grestore } bind def
/D11 { gsave translate 45 rotate 0 0 S11 stroke grestore } bind def
/D12 { gsave translate 45 rotate 0 0 S12 stroke grestore } bind def
/D13 { gsave translate 45 rotate 0 0 S13 stroke grestore } bind def
/D14 { gsave translate 45 rotate 0 0 S14 stroke grestore } bind def
/D15 { gsave translate 45 rotate 0 0 S15 stroke grestore } bind def
/BoxFill { gsave Rec 1 setgray fill grestore } def
end
%%EndProlog
%%Page: 1 1
gnudict begin
gsave
50 50 translate
0.100 0.100 scale
0 setgray
newpath
(Times-Roman) findfont 250 scalefont setfont
LTb
1063 750 M
63 0 V
3551 0 R
-63 0 V
913 750 M
(0) Rshow
1063 1564 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(10) Rshow
1063 2379 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(20) Rshow
1063 3193 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(30) Rshow
1063 4007 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(40) Rshow
1063 4821 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(50) Rshow
1063 5636 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(60) Rshow
1063 6450 M
63 0 V
3551 0 R
-63 0 V
-3701 0 R
(70) Rshow
1063 750 M
0 63 V
0 5637 R
0 -63 V
0 -5887 R
(0) Cshow
4677 750 M
0 63 V
0 5637 R
0 -63 V
0 -5887 R
(1) Cshow
1063 750 M
3614 0 V
0 5700 V
-3614 0 V
0 -5700 V
500 3600 M
currentpoint gsave translate 90 rotate 0 0 M
(Throughput \(X 1000 Cells/Sec.\)) Cshow
grestore
2870 250 M
(Load) Cshow
2870 6950 M
(Aggregate Cell Throughput ) Cshow
2870 6700 M
( vs. Load) Cshow
LT0
2113 6262 M
(Video) Rshow
2263 6262 M
663 0 V
1446 1028 M
98 276 V
166 252 V
303 190 V
387 272 V
369 252 V
462 256 V
593 201 V
777 214 V
2594 6262 Circle
1446 1028 Circle
1544 1304 Circle
1710 1556 Circle
2013 1746 Circle
2400 2018 Circle
2769 2270 Circle
3231 2526 Circle
3824 2727 Circle
4601 2941 Circle
LT0
2113 6012 M
(Data) Rshow
2263 6012 M
663 0 V
1446 1463 M
98 30 V
166 191 V
303 638 V
387 721 V
369 898 V
462 998 V
593 993 V
777 164 V
2594 6012 CircleF
1446 1463 CircleF
1544 1493 CircleF
1710 1684 CircleF
2013 2322 CircleF
2400 3043 CircleF
2769 3941 CircleF
3231 4939 CircleF
3824 5932 CircleF
4601 6096 CircleF
stroke
grestore
end
showpage
%%Trailer
%%DocumentFonts: Times-Roman
%%Pages: 1
--
Sharif M. Shahrier Tel: 1-512-471-8011
Computer Engineering Research Center (C8800) Fax: 1-512-471-8967
UT Austin, TX 78712-1014, U.S.A. E-mail: shahrier@cs.utexas.edu
Technical Details
Message-ID:
<4sbu1s$n6a@peaches.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa2ca,cc32bc2c6a88ed26,start X-Google-Attributes: gidfa2ca,public From: shahrier@cs.utexas.edu (Sharif Mohammed Shahrier) Subject: printing problems Date: 1996/07/14 Message-ID: <4sbu1s$n6a@peaches.cs.utexas.edu> X-Deja-AN: 168753478 organization: CS Dept, University of Texas at Austin newsgroups: fj.lang.postscript