Happy new year...
I have this problem again and I realize that when generating a .ps file and trying to open it in Peview.app it shows
- a message that the ps document could not pe opened because it had nothing in it...
- cgpdftops hangs in Activity monitor.app (I have to force quit it again)
The ps document is as follows (seems to me empty of whatever) :
%!PS-Adobe-3.0
%APL_DSC_Encoding: UTF8
%APLProducer: (Version 10.7.2 (Build 11C74) Quartz PS Context)
%%Title: (Re: 05JAN11 am-db 3360 Necessary complementary documents)
%%Creator: (Mail: cgpdftops CUPS filter)
%%CreationDate: (Thursday, January 05 2012 11:52:32 CET)
%%For: (Alex Moruzzi)
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%PageOrder: Ascend
%%Requirements: duplex
%RBINumCopies: 1
%%Pages: (atend)
%%BoundingBox: (atend)
%%EndComments
userdict/dscInfo 5 dict dup begin
/Title(Re: 05JAN11 am-db 3360 Necessary complementary documents)def
/Creator(Mail: cgpdftops CUPS filter)def
/CreationDate(Thursday, January 05 2012 11:52:32 CET)def
/For(Alex Moruzzi)def
/Pages 2 def
end put
%%BeginProlog
%%BeginFile: lw8_errorhandler-2.0
/currentpacking where
{ pop /oldpack currentpacking def /setpacking where
{
pop false setpacking
}if
}if
/$brkpage 64 dict def $brkpage begin
/prnt
{dup type/stringtype ne{=string cvs}if dup length 6 mul/tx exch def/ty 10 def
currentpoint/toy exch def/tox exch def 1 setgray newpath
tox toy 2 sub moveto 0 ty rlineto tx 0 rlineto 0 ty neg rlineto
closepath fill tox toy moveto 0 setgray show}bind def
/nl{currentpoint exch pop lmargin exch moveto 0 -10 rmoveto}def
/=={/cp 0 def typeprint nl}def
/typeprint{dup type exec}readonly def
/lmargin 72 def
/rmargin 72 def
/tprint
{dup length cp add rmargin gt{nl/cp 0 def}if
dup length cp add/cp exch def prnt}readonly def
/cvsprint{=string cvs tprint( )tprint}readonly def
/integertype{cvsprint}readonly def
/realtype{cvsprint}readonly def
/booleantype{cvsprint}readonly def
/operatortype{(--)tprint =string cvs tprint(-- )tprint}readonly def
/marktype{pop(-mark- )tprint}readonly def
/dicttype{pop(-dictionary- )tprint}readonly def
/nulltype{pop(-null- )tprint}readonly def
/filetype{pop(-filestream- )tprint}readonly def
/savetype{pop(-savelevel- )tprint}readonly def
/fonttype{pop(-fontid- )tprint}readonly def
/nametype{dup xcheck not{(/)tprint}if cvsprint}readonly def
/stringtype
{dup rcheck{(\()tprint tprint(\))tprint}{pop(-string- )tprint}ifelse
}readonly def
/arraytype
{dup rcheck{dup xcheck
{({)tprint{typeprint}forall(})tprint}
{([)tprint{typeprint}forall(])tprint}ifelse}{pop(-array- )tprint}ifelse
}readonly def
/packedarraytype
{dup rcheck{dup xcheck
{({)tprint{typeprint}forall(})tprint}
{([)tprint{typeprint}forall(])tprint}ifelse}{pop(-packedarray- )tprint}ifelse
}readonly def
/courier/Courier findfont 10 scalefont def
end %$brkpage
errordict/handleerror
{systemdict begin $error begin $brkpage begin newerror
{/newerror false store
vmstatus pop pop 0 ne{grestoreall}if initgraphics courier setfont
lmargin 720 moveto(ERROR: )prnt errorname prnt
nl(OFFENDING COMMAND: )prnt/command load prnt
$error/ostack known{
$error/ostack get type dup/arraytype eq exch /packedarraytype eq or
{nl nl(STACK:)prnt nl nl $error/ostack get aload length{==}repeat}if}if
systemdict/showpage get exec(%%[ Error: )print
errorname =print(; OffendingCommand: )print/command
load =print( ]%%)= flush}if end end end}
dup 0 systemdict put dup 4 $brkpage put bind readonly put
/currentpacking where
{ pop /setpacking where
{
pop oldpack setpacking
}if
}if
%%EndFile
%%BeginFile: cg-pdf.ps
%%Copyright: Copyright 2000-2004 Apple Computer Incorporated.
%%Copyright: All Rights Reserved.
currentpacking true setpacking
/cg_md 141 dict def
cg_md begin
/L3? languagelevel 3 ge def
/bd{bind def}bind def
/ld{load def}bd
/xs{exch store}bd
/xd{exch def}bd
/cmmtx matrix def
mark
/sc/setcolor
/scs/setcolorspace
/dr/defineresource
/fr/findresource
/T/true
/F/false
/d/setdash
/w/setlinewidth
/J/setlinecap
/j/setlinejoin
/M/setmiterlimit
/i/setflat
/rc/rectclip
/rf/rectfill
/rs/rectstroke
/f/fill
/f*/eofill
/sf/selectfont
/s/show
/xS/xshow
/yS/yshow
/xyS/xyshow
/S/stroke
/m/moveto
/l/lineto
/c/curveto
/h/closepath
/n/newpath
/q/gsave
/Q/grestore
counttomark 2 idiv
{ld}repeat pop
/SC{
/ColorSpace fr scs
}bd
/sopr /setoverprint where{pop/setoverprint}{/pop}ifelse ld
/soprm /setoverprintmode where{pop/setoverprintmode}{/pop}ifelse ld
/cgmtx matrix def
/sdmtx{cgmtx currentmatrix pop}bd
/CM {cgmtx setmatrix}bd
/cm {cmmtx astore CM concat}bd
/W{clip newpath}bd
/W*{eoclip newpath}bd
statusdict begin product end dup (HP) anchorsearch{
pop pop pop
true
}{
pop
(hp) anchorsearch{
pop pop true
}{
pop false
}ifelse
}ifelse
{
{
{
pop pop
(0)dup 0 4 -1 roll put
F charpath
}cshow
}
}{
{F charpath}
}ifelse
/cply exch bd
/cps {cply stroke}bd
/pgsave 0 def
/bp{/pgsave save store}bd
/ep{pgsave restore showpage}def
/re{4 2 roll m 1 index 0 rlineto 0 exch rlineto neg 0 rlineto h}bd
/scrdict 10 dict def
/scrmtx matrix def
/patarray 0 def
/createpat{patarray 3 1 roll put}bd
/makepat{
scrmtx astore pop
gsave
initgraphics
CM
patarray exch get
scrmtx
makepattern
grestore
setpattern
}bd
/cg_BeginEPSF{
userdict save/cg_b4_Inc_state exch put
userdict/cg_endepsf/cg_EndEPSF load put
count userdict/cg_op_count 3 -1 roll put
countdictstack dup array dictstack userdict/cg_dict_array 3 -1 roll put
3 sub{end}repeat
/showpage {} def
0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin
10 setmiterlimit [] 0 setdash newpath
false setstrokeadjust false setoverprint
}bd
/cg_EndEPSF{
countdictstack 3 sub { end } repeat
cg_dict_array 3 1 index length 3 sub getinterval
{begin}forall
count userdict/cg_op_count get sub{pop}repeat
userdict/cg_b4_Inc_state get restore
F setpacking
}bd
/cg_biproc{currentfile/RunLengthDecode filter}bd
/cg_aiproc{currentfile/ASCII85Decode filter/RunLengthDecode filter}bd
/ImageDataSource 0 def
L3?{
/cg_mibiproc{pop pop/ImageDataSource{cg_biproc}def}bd
/cg_miaiproc{pop pop/ImageDataSource{cg_aiproc}def}bd
}{
/ImageBandMask 0 def
/ImageBandData 0 def
/cg_mibiproc{
string/ImageBandMask xs
string/ImageBandData xs
/ImageDataSource{[currentfile/RunLengthDecode filter dup ImageBandMask/readstring cvx
/pop cvx dup ImageBandData/readstring cvx/pop cvx]cvx bind}bd
}bd
/cg_miaiproc{
string/ImageBandMask xs
string/ImageBandData xs
/ImageDataSource{[currentfile/ASCII85Decode filter/RunLengthDecode filter
dup ImageBandMask/readstring cvx
/pop cvx dup ImageBandData/readstring cvx/pop cvx]cvx bind}bd
}bd
}ifelse
/imsave 0 def
/BI{save/imsave xd mark}bd
/EI{imsave restore}bd
/ID{
counttomark 2 idiv
dup 2 add
dict begin
{def} repeat
pop
/ImageType 1 def
/ImageMatrix[Width 0 0 Height neg 0 Height]def
currentdict dup/ImageMask known{ImageMask}{F}ifelse exch
L3?{
dup/MaskedImage known
{
pop
<<
/ImageType 3
/InterleaveType 2
/DataDict currentdict
/MaskDict
<< /ImageType 1
/Width Width
/Height Height
/ImageMatrix ImageMatrix
/BitsPerComponent 1
/Decode [0 1]
currentdict/Interpolate known
{/Interpolate Interpolate}if
>>
>>
}if
}if
exch
{imagemask}{image}ifelse
end
}bd
/cguidfix{statusdict begin mark version end
{cvr}stopped{cleartomark 0}{exch pop}ifelse
2012 lt{dup findfont dup length dict begin
{1 index/FID ne 2 index/UniqueID ne and
{def} {pop pop} ifelse}forall
currentdict end definefont pop
}{pop}ifelse
}bd
/t_array 0 def
/t_i 0 def
/t_c 1 string def
/x_proc{
exch t_array t_i get add exch moveto
/t_i t_i 1 add store
}bd
/y_proc{
t_array t_i get add moveto
/t_i t_i 1 add store
}bd
/xy_proc{
t_array t_i 2 copy 1 add get 3 1 roll get
4 -1 roll add 3 1 roll add moveto
/t_i t_i 2 add store
}bd
/sop 0 def
/cp_proc/x_proc ld
/base_charpath
{
/t_array xs
/t_i 0 def
{
t_c 0 3 -1 roll put
currentpoint
t_c cply sop
cp_proc
}forall
/t_array 0 def
}bd
/sop/stroke ld
/nop{}def
/xsp/base_charpath ld
/ysp{/cp_proc/y_proc ld base_charpath/cp_proc/x_proc ld}bd
/xysp{/cp_proc/xy_proc ld base_charpath/cp_proc/x_proc ld}bd
/xmp{/sop/nop ld /cp_proc/x_proc ld base_charpath/sop/stroke ld}bd
/ymp{/sop/nop ld /cp_proc/y_proc ld base_charpath/sop/stroke ld}bd
/xymp{/sop/nop ld /cp_proc/xy_proc ld base_charpath/sop/stroke ld}bd
/refnt{
findfont dup length dict copy dup
/Encoding 4 -1 roll put
definefont pop
}bd
/renmfont{
findfont dup length dict copy definefont pop
}bd
L3? dup dup{save exch}if
/Range 0 def
/DataSource 0 def
/val 0 def
/nRange 0 def
/mulRange 0 def
/d0 0 def
/r0 0 def
/di 0 def
/ri 0 def
/a0 0 def
/a1 0 def
/r1 0 def
/r2 0 def
/dx 0 def
/Nsteps 0 def
/sh3tp 0 def
/ymax 0 def
/ymin 0 def
/xmax 0 def
/xmin 0 def
/setupFunEval
{
begin
/nRange Range length 2 idiv store
/mulRange
[
0 1 nRange 1 sub
{
2 mul/nDim2 xd
Range nDim2 get
Range nDim2 1 add get
1 index sub
255 div
exch
}for
]store
end
}bd
/FunEval
{
begin
nRange mul /val xd
0 1 nRange 1 sub
{
dup 2 mul/nDim2 xd
val
add DataSource exch get
mulRange nDim2 get mul
mulRange nDim2 1 add get
add
}for
end
}bd
/max
{
2 copy lt
{exch pop}{pop}ifelse
}bd
/sh2
{
/Coords load aload pop
3 index 3 index translate
3 -1 roll sub
3 1 roll exch
sub
2 copy
dup mul exch dup mul add sqrt
dup
scale
atan
rotate
/Function load setupFunEval
clippath {pathbbox}stopped {0 0 0 0}if newpath
/ymax xs
/xmax xs
/ymin xs
/xmin xs
currentdict/Extend known
{
/Extend load 0 get
{
0/Function load FunEval sc
xmin ymin xmin abs ymax ymin sub rectfill
}if
}if
/Nsteps/Function load/Size get 0 get 1 sub store
/dx 1 Nsteps div store
gsave
/di ymax ymin sub store
/Function load
0 1 Nsteps
{
1 index FunEval sc
0 ymin dx di rectfill
dx 0 translate
}for
pop
grestore
currentdict/Extend known
{
/Extend load 1 get
{
Nsteps/Function load FunEval sc
1 ymin xmax 1 sub abs ymax ymin sub rectfill
}if
}if
}bd
/shp
{
4 copy
dup 0 gt{
0 exch a1 a0 arc
}{
pop 0 moveto
}ifelse
dup 0 gt{
0 exch a0 a1 arcn
}{
pop 0 lineto
}ifelse
fill
dup 0 gt{
0 exch a0 a1 arc
}{
pop 0 moveto
}ifelse
dup 0 gt{
0 exch a1 a0 arcn
}{
pop 0 lineto
}ifelse
fill
}bd
/calcmaxs
{
xmin dup mul ymin dup mul add sqrt
xmax dup mul ymin dup mul add sqrt
xmin dup mul ymax dup mul add sqrt
xmax dup mul ymax dup mul add sqrt
max max max
}bd
/sh3
{
/Coords load aload pop
5 index 5 index translate
3 -1 roll 6 -1 roll sub
3 -1 roll 5 -1 roll sub
2 copy dup mul exch dup mul add sqrt
/dx xs
2 copy 0 ne exch 0 ne or
{
exch atan rotate
}{
pop pop
}ifelse
/r2 xs
/r1 xs
/Function load
dup/Size get 0 get 1 sub
/Nsteps xs
setupFunEval
dx r2 add r1 lt{
0
}{
dx r1 add r2 le
{
1
}{
r1 r2 eq
{
2
}{
3
}ifelse
}ifelse
}ifelse
/sh3tp xs
clippath {pathbbox}stopped {0 0 0 0}if
newpath
/ymax xs
/xmax xs
/ymin xs
/xmin xs
dx dup mul r2 r1 sub dup mul sub dup 0 gt
{
sqrt r2 r1 sub atan
/a0 exch 180 exch sub store
/a1 a0 neg store
}{
pop
/a0 0 store
/a1 360 store
}ifelse
currentdict/Extend known
{
/Extend load 0 get r1 0 gt and
{
0/Function load FunEval sc
{
{
dx 0 r1 360 0 arcn
xmin ymin moveto
xmax ymin lineto
xmax ymax lineto
xmin ymax lineto
xmin ymin lineto
eofill
}
{
r1 0 gt{0 0 r1 0 360 arc fill}if
}
{
0 r1 xmin abs r1 add neg r1 shp
}
{
r2 r1 gt{
0 r1
r1 neg r2 r1 sub div dx mul
0
shp
}{
0 r1 calcmaxs
dup
r2 add dx mul dx r1 r2 sub sub div
neg
exch 1 index
abs exch sub
shp
}ifelse
}
}sh3tp get exec
}if
}if
/d0 0 store
/r0 r1 store
/di dx Nsteps div store
/ri r2 r1 sub Nsteps div store
/Function load
0 1 Nsteps
{
1 index FunEval sc
d0 di add r0 ri add d0 r0 shp
{
d0 0 r0 a1 a0 arc
d0 di add 0 r0 ri add a0 a1 arcn
fill
d0 0 r0 a0 a1 arc
d0 di add 0 r0 ri add a1 a0 arcn
fill
}pop
/d0 d0 di add store
/r0 r0 ri add store
}for
pop
currentdict/Extend known
{
/Extend load 1 get r2 0 gt and
{
Nsteps/Function load FunEval sc
{
{
dx 0 r2 0 360 arc fill
}
{
dx 0 r2 360 0 arcn
xmin ymin moveto
xmax ymin lineto
xmax ymax lineto
xmin ymax lineto
xmin ymin lineto
eofill
}
{
xmax abs r1 add r1 dx r1 shp
}
{
r2 r1 gt{
calcmaxs dup
r1 add dx mul dx r2 r1 sub sub div
exch 1 index
exch sub
dx r2
shp
}{
r1 neg r2 r1 sub div dx mul
0
dx
r2
shp
}ifelse
}
}
sh3tp get exec
}if
}if
}bd
/sh
{
begin
/ShadingType load dup dup 2 eq exch 3 eq or
{
gsave
newpath
/ColorSpace load scs
currentdict/BBox known
{
/BBox load aload pop
2 index sub
3 index
3 -1 roll exch sub
exch rectclip
}if
2 eq
{sh2}{sh3}ifelse
grestore
}{
pop
(DEBUG: shading type unimplemented\n)print flush
}ifelse
end
}bd
{restore}if not dup{save exch}if
L3?{
/sh/shfill ld
/csq/clipsave ld
/csQ/cliprestore ld
}if
{restore}if
end
setpacking
%%EndFile
%%EndProlog
%%BeginSetup
% Disable CTRL-D as an end-of-file marker...
userdict dup(\004)cvn{}put (\004\004)cvn{}put
[{
%%BeginFeature: *Finisher NotInstalled
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *InnerTray2 Installed
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *LargeCapacityTray NotInstalled
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *OptionTray 2Cassette
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *ShiftTray NotInstalled
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIPaperPolicy PromptUser
<</DeferredMediaSelection true>> setpagedevice
<</Policies << /PageSize 2 /MediaType 2 >> >> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *PageSize A4
<<
/PageSize [595 842] /ImagingBBox null >> setpagedevice
false setedgetoedge
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *Resolution 600dpi
<</HWResolution[600 600]>>setpagedevice
/version (3010.103) def
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSBitsPerPixel 1BitsPerPixel
1 setbitsperpixel
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIPrintMode 0rhit
<<
/PostRenderingEnhance false>> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *Duplex DuplexNoTumble
<</Duplex true /Tumble false>>setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *ColorModel Gray
(gray) RCsetdevicecolor
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSRGBcorrect DetailBright
(precision-dark) RCsetrgbrevision
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSColorRendDict Auto
(auto) RCsetcolorprofile
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSDitherType Auto
(auto) RCsethalftonetype
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSBlackMode gray
(gray) (gray) (off) /RDeviceProcSet
/ProcSet findresource /SetPureBlack get exec
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSBlackOverPrint False
(off) RCsetblackoverprint
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RPSColorSep None
(none) RCsetprintseparation
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *Rcmyksimulation Off
(None) RCsetcmyksimulation
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *Rimagesm Off
(off) /RDeviceProcSet /ProcSet findresource /SetImageInterpolate get exec
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIRotateBy180 Off
0 /RDeviceProcSet /ProcSet findresource /SetImageRotation get exec
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIOrientOvr Off
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RICollate False
<</Collate false>>setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *MediaType Auto
<< /MediaType (Auto) >> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *OutputBin Default
<</OutputType null>>setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *StapleLocation None
<< /Staple 0 >> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIPunch None
<< /Punch 0 >> setpagedevice
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIWatermark Off
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIWMText Confidential
userdict /RPS_WMdict get begin
/RPS_WM_str (CONFIDENTIAL) def end
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIwmFont HelveticaB
userdict /RPS_WMdict get begin
/RPS_WM_font /Helvetica-Bold def end
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIwmSize 36
userdict /RPS_WMdict get begin
/RPS_WM_size 36 def end
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIwmAngle 45Deg
userdict /RPS_WMdict get begin
/RPS_WM_angle 45 def end
%%EndFeature
} stopped cleartomark
[{
%%BeginFeature: *RIwmTextStyle Gray
userdict /RPS_WMdict get begin
/RPS_WM_color { 0 setgray } bind def
/RPS_WM_Pattern {
<<
/PatternType 1
/PaintType 1
/TilingType 3
/BBox [ 0 0 1 1 ]
/XStep 1
/YStep 1
/PaintProc {
begin
RPS_WM_color
8 8 true [ 8 0 0 -8 0 8 ]
<88002200 88002200> imagemask
end
}
>> [ 1 0 0 -1 0 1 ] makepattern
setpattern }
bind def
/RPS_WM_draw { %% RPS_WM_mask
RPS_WM_str false charpath fill
} bind def end
%%EndFeature
} stopped cleartomark
% x y w h ESPrc - Clip to a rectangle.
userdict/ESPrc/rectclip where{pop/rectclip load}
{{newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
neg 0 rlineto closepath clip newpath}bind}ifelse put
% x y w h ESPrf - Fill a rectangle.
userdict/ESPrf/rectfill where{pop/rectfill load}
{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
neg 0 rlineto closepath fill grestore}bind}ifelse put
% x y w h ESPrs - Stroke a rectangle.
userdict/ESPrs/rectstroke where{pop/rectstroke load}
{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
neg 0 rlineto closepath stroke grestore}bind}ifelse put
userdict/ESPwl{}bind put
%%EndSetup
%%Page: 1 1
%%PageBoundingBox: 0 0 595 842
%%BeginPageSetup
%%EndPageSetup
cg_md begin
bp
sdmtx
%%Trailer
%%Pages: 1
%%BoundingBox: 0 0 595 842
%%EOF