Professional Documents
Culture Documents
PowerDoc {
/MESSAGES (OFF) def
} if
PRINTER () eq {
/A-size { statusdict begin [612 792] null [0 0] [0 0 0 0] genpaper end } def
/B-size { statusdict begin [792 1124] null [0 0] [0 0 0 0] genpaper end } def
} if
/rerun {
$lastfilerun //run
} def
/run {
/$lastfilerun exch def
$lastfilerun //run
} def
/timerun {
<</OutputPage false>>setpagedevice
/time usertime def
systemdict /run get exec
usertime time sub timeprint
} def
/timeprint {
1000 div (time (secs): ) print = flush
(\r\n)print flush
} def
statusdict begin
/product PRINTER () eq { (PowerPage) } { PRINTER } ifelse def
/setbin {statusdict exch /$$bin exch put} def
/currentbin {statusdict /$$bin get} def
/$$bin 0 def
true setglobal
systemdict begin
/_findfont /findfont load def
/findfont {
systemdict /FontDirectory get exch 2 copy known
{
get
} {
exch pop
/Font {findresource} stopped {
pop $error /command /findfont put stop
} if
} ifelse
} bind def
end
false setglobal
(resource.ps)run
% (setpage.ps) run
statusdict begin
/genpaper {
<< /Policies << /PageSize 7>> >> setpagedevice
statusdict begin
/traydict 5 dict def
traydict begin
/PageMargins exch def
/Margins exch def
/ImagingBBox exch def
/PageSize exch def
end
traydict setpagedevice
end
} def
end
true setglobal
%
% load Level 2 default CIE color rendering dictionary
%
CIE (ON) eq {
%
%
% PhotoShop friendly default CRD
%
systemdict /setcolorrendering known {
6 dict begin
/ColorRenderingType 1 def
/MatrixLMN [2.951 -1.085 .0864
-1.289 1.991 -.2711
-.4738 .0372 1.0910] def
/EncodeLMN [ {dup 0 lt {pop 0} {
dup 1 gt {pop 1} {0.555555 exp} ifelse}
ifelse} dup dup] def
/WhitePoint [.9505 1 1.0891] def
/TransformPQR [ {} {} {} ] def
/PipelineCIEDefault 1 def
currentdict
end setcolorrendering
}if
}{
% Old-style 'do-nothing' default CRD
%
systemdict /setcolorrendering known {
3 dict begin
/ColorRenderingType 1 def
/WhitePoint [0.9505 1.0 1.089] def
/TransformPQR [ {} {} {} ] def
currentdict
end setcolorrendering
}if
} ifelse
RIBBONS (4) eq {
{pop 0} setundercolorremoval
{pop 0} setblackgeneration
} if
%
% Now install the appropriate paper size
%
<<
/PageSize [612 792]
/ImagingModel 4
/ColorDepth DEPTH
/Colors RIBBONS cvi
/HWResolution [hres vres]
/GrayScale GRAYSCALE
/Yorient 1 % Page flipped vertically if -1, normal if 1
/OutputProc { }
>> setpagedevice
%DLL {
% 10 string (HIRES) getenv {
% << /OutputProc { (c:/pwrpage/page) (bmp24) writepage } >>
setpagedevice
% <</OutputPage false>>setpagedevice
% } {
% << /OutputProc { (c:/pwrpage/page) (bmp) writepage } >> setpagedevice
% } ifelse
%} {
% << /OutputProc { (c:/pwrpage/page) (bmp) writepage } >> setpagedevice
% << /OutputProc { (c:/tmp/page.out) (bin) writepage } >> setpagedevice
% << /OutputProc { (page.bmp) (bmp) writepage } >> setpagedevice
%} ifelse
statusdict begin
/lettertray {} def
/11x17tray {} def
/setpapertray {pop} def
end
DLL {
mark 256 2000 setcacheparams
} {
mark 2000 10000 setcacheparams
} ifelse
/timeit {
/S__1 save def
dup print (: ) print
timerun
clear
S__1 restore
} def
false echo
systemdict begin
true setglobal
/cexec { pop } def
/devformat { pop pop pop } bind def
/product (PowerPage) def
false setglobal
end
true setglobal
(ROMFONT1)run
false setglobal
%
% Initiialize Type4 font support if necessary
%
TYPE4 { (type4.ps) run } if
{pop 0} setundercolorremoval
{} setblackgeneration
statusdict begin
mark currentscreen counttomark array astore exch pop /DEFAULTSCREEN exch def
end
/setsmoothing {
10 string (SMOOTH) getenv {
dup dup
OLDSMOOTH ne {
(ON) eq {
(Smoothing turned on for next job\r\n) print flush
26.5 45
{
dup 0 lt { 1 add } if exch
dup 0 lt { 1 add } if exch
.49 sub 2 mul exch .48 sub 2 mul
abs exch abs dup 2 index add 1.1 le
{dup mul exch dup mul add 2 div 1 exch sub}
{1 exch sub dup mul exch 1 exch sub dup mul add 2 div
1 sub}
ifelse
}
} {
(Smoothing turned off for next job\r\n) print flush
setscreen
} {
pop
}
ifelse
setsmoothing
MEMdict pop % Ensure that MEMdict gets initialized at lowest save level.
SERVER (YES) eq {
MESSAGES (ON) eq {
(Running PostScript job server\n)print flush
} if
(server2.ps)run
userdict /start {serve} put
} {
save pop
} ifelse
MESSAGES (ON) eq {
(Waiting for PostScript job...\n)print flush
} if