Printing cgpdftops hangs on a network NRG printer

I have a problem of printing "hanging up" that appears randomly with mail documents and preview on a Nashuatec MPC 4000 printer...

I realize when checking the activity monitor that the cgpdftops uses more than 100% of processor and cannot be quit (need for force quit)...

On the printer side which was linked using direct ip or bonjour configs, the printers shows a reinit message all along the printing process with cgpdftops running... when I force quit the process, the printer then stops its message..

I tried the following :

1) reinstall the printer ppd

2) run the 10.7.2 combo update


but nothing helps...


Anyone to give further ideas ? thanks.

Printer NRG mp c 4000-OTHER, Mac OS X (10.7.2)

Posted on Dec 9, 2011 3:33 AM

Reply
15 replies

Dec 9, 2011 12:13 PM in response to John Blanchard1

The problem is that the printer uses a code so that the prints without that code don't print (it's made mainly for not printing colour mode)... the problem is that a generic printer will not send that code... the print will not work...

Maybe trying to use a cups version... if it exists...

However, I've read that the cgpdftops is a routine for translating pdf to ps... the ppd should not be the main cause... Is apple working on the subjet for 10.7.3 ? I've read some similar problems with 10.6.4...

Dec 9, 2011 3:31 PM in response to alexfromnyon

alexfromnyon wrote:


the ppd should not be the main cause... Is apple working on the subjet for 10.7.3 ? I've read some similar problems with 10.6.4...

The PPD is the cause because the Nashuatec is referencing a plugin to support the entry of the job code into the spool file and subsequent submission of that data to the printer. Using the Generic would not call the same plugin but of course, if the printer is set to block usage without a valid ID, then this spool file would be cancelled at the copier.


As for Apple working on the subject, I don't believe there is anything for them to work on. The current filter is stable if the printer driver has been written to work with the OS. But if the vendor has failed to udpate their drivers to suit the new processes, then you will see errors with core filters and backends and therefore it is the vendor that needs to be doing the work and getting updated drivers produced. The cgpdftops filter has been present for many iterations of OS X and I would put money on the problem being that the Nashua driver was written for 10.5 and is making the wrong calls, especially for sandboxed applications like Preview.


As John has suggested, the use of the Generic PS driver would give you an insight into the cause. If the copier could be changed so that just this Mac could print without needing an ID, and then the use of the Generic PS driver did not result in the same errors, then at least you have identified the cause.

Dec 9, 2011 5:58 PM in response to alexfromnyon

I took a look at the driver and it looks to be compliant. For clarification Nashuatec = NRG which is one of the Ricoh brands. Your model is also listed as being supported on the Apple support page http://support.apple.com/kb/HT3669#nrg . These drivers are for those printers that have the PostScript module installed. If the PostScript module is not installed you will need to use the pxlmono/pxlcolor drivers.


Running through a checklist for troubleshooting--

1. Did this printer work with the NRG drivers in a previous version of OS X?

2. If possible, have the user codes turned off on the printer just long enough for you to send a test print without a user code to see if that is the problem.

3. Verify that the printer has the PostScript module installed?

4. Did you try the JetDirect/AppSocket protocol? That is usually the protocol that is recommended by the manufacturer.

5. Try using the pxlmono/pxlcolor drivers from http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/pxlmon o . Be sure to install all three parts -- pxlmono, Foomatic-RIP, and Ghostscript. You will need to use a small script I wrote to set your password in the PPD file once you have the printer set up. You can get that script here. Does that driver work?


I hope these steps will help define where things may be going wrong.

Dec 13, 2011 1:55 AM in response to Matt Broughton

Dear Matt,

Thanks for your input but although I restarted the computer, reinitiated the work and printed in grayscale mode (no user code need), the same "cgpdftops" hangs on some documents with pdfs generated by my computer....

Is it normal that the pxl driver calls the same routine (ghostscript and foomatic rip are installed)?


Awaiting on your answer,

Dec 13, 2011 2:13 AM in response to PAHU

Dear PAHU,

Not sure the ppd is the problem... I export the print preview in jp2 format and I can actually print the document...

Only some documents INCLUDING PDF IMAGES and some PDF DOCUMENTS make the cgpdftops process hang... my main worry is that the incriminated pdfs (from what I can see) are produced by my OSX lion previews...Something might be wrong in the way the "encapsulation" (if any) is treated in the pdf preview process that creates de pdf and the way cgpdftops handles that routine...

Don't you think this could be the problem ?


For info : All other computers running 10.6 and using NRG ppds are ok with printing and usercodes... no problem anywhere else..

Dec 13, 2011 7:04 PM in response to alexfromnyon

alexfromnyon wrote:

Is it normal that the pxl driver calls the same routine (ghostscript and foomatic rip are installed)?


I am reversing the order of your questions. Yes it is normal for the PXL driver to use the same cgpdftops filter. With the PXL driver, we have to present the printer as a PostScript printer to the printing system. Foomatic-RIP calls on a set of filters (Poppler) that are not present on OS X. They are heavily Linux based and not easily ported. If users of OS X let Foomatic-RIP try to handle a PDF workflow all job options --landscape, grayscale, user codes, etc-- are not passed along and the proper PJL statements are not written to the PXL output file.

... I restarted the computer, reinitiated the work and printed in grayscale mode (no user code need), the same "cgpdftops" hangs on some documents with pdfs generated by my computer....


The next suspect would have been a font conflict; however, you next response to PAHU indicates you get the same problem with image PDFs.


Is there anything showing in the CUPS error_log when the cgpdftops filter gets hung? http://127.0.0.1:631/admin/log/error_log?. If you don't see anything, it may help to turn on debugging first. http://127.0.0.1:631/admin

Dec 13, 2011 11:00 PM in response to Matt Broughton

alexfromnyon wrote:

Something might be wrong in the way the "encapsulation" (if any) is treated in the pdf preview process that creates de pdf and the way cgpdftops handles that routine... Don't you think this could be the problem ?

I think that if this was the case, the offending PDF would create a problem on another OS, such as 10.6. Are you able to print these Lion created PDFs in SL?


I agree with Matt response in viewing the cups error log. This should give some insight into what filters and plugins are called during the spool file creation.


Also, in previous instances of the cgpdftops filter failing, some users have gotten stability by resetting the printing system and repairing disk permissions.

Dec 13, 2011 11:15 PM in response to Matt Broughton

Dear Matt, dear PAHU,

Well, I think this helps really... I know the problem is from a ricoh folder that cannot be found... maybe due to an installation I should not have done of the ricoh driver (since NRG includes Nashuatec, Ricoh and Gestetner, I thought it was worth...)

- saving the ps file is ok but then opening it in preview app does not work!!!

I will try to find out how to uninstall the ricoh stuffs and then reinstall the NRG drivers or solve the folder issue


Thanks again!


http://127.0.0.1:631/admin


was the best information

Dec 14, 2011 2:27 AM in response to PAHU

Dear PAHU,

Ricoh drivers :

I found them, did remove them and some were reinstalled by NRG new installation



PDF print from another SL computer does not work


I'm working on the fonts... but am realizing the documents I cannot print are all from mail app (sent and preparation documents)...


Message on a print says :


ERROR : synt

OFFENDING (1--


STACCK:


-mark-


All mails I issue now can't print !!!


Tried to solve issues in the fontsbook...


Nothing works

Dec 14, 2011 3:05 AM in response to alexfromnyon

The error message seems to be lacking in information, at least when compared to what I have seen. I would expect to see more information about the stack and what is causing the error. So are you generating a PS file from the mail app and then converting to PDF? Would be helpful if we had more information about your workflow.

Dec 14, 2011 5:14 AM in response to PAHU

The print just says that.. It is like "cropped"

I did the ps and tried to open it in preview app but did not work

I sent one "problem" e-mail to another printer (by e-mail) and it did print out correctly


D [14/Dec/2011:14:13:56 +0100] [Job 397] ImageIO: <ERROR> JPEG Corrupt JPEG data: 66 extraneous bytes before marker 0xc0

D [14/Dec/2011:14:13:56 +0100] PID 7127 (/usr/libexec/cups/filter/cgpdftops) was terminated normally with signal 9.

D [14/Dec/2011:14:13:56 +0100] PID 7128 (/usr/libexec/cups/filter/pstops) exited with no errors.

D [14/Dec/2011:14:13:56 +0100] Discarding unused printer-state-changed event...


Well, I guess the problem comees from my account image... I'll chase it

Jan 5, 2012 3:00 AM in response to PAHU

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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Printing cgpdftops hangs on a network NRG printer

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.