(v13) SwLePS
This page applies to Harlequin v13.1r0 and later; and to Harlequin Core but not Harlequin MultiRIP.
Instead of calling this function directly, Global Graphics recommends using the input queue. For more information see (v13) The input queue and inputs API.
This function passes a buffer of PostScript language code to the RIP. The function is called repeatedly to pass a complete job to the RIP.
To terminate the RIP, call, call SwLeStop()
.
To have the RIP read from a file directly, use the PostScript language fragment shown in the Extensions Manual to set stdin
.
The following is a simple variation:
(<filename>) (r) file cvx dup (%stdout%) (w) file statusdict /setstdio get exec exec
To run a PDF job, use a PostScript language fragment to call the RIP extension operator pdfexec
on an opened file. This is an example of how pdfexec
can be used:
/f (%G%PS/book5x15.pdf) (r) file def
save /pagesave exch def f 0 setfileposition
f << /PageRange [ 32 ] >> pdfexec pagesave restore
save /pagesave exch def f 0 setfileposition
f << /PageRange [ [1 6] 10 ] >> pdfexec pagesave restore
This PostScript language fragment runs page 32 first, then pages one to six inclusive and then page 10.
In the event of an unstopped PostScript language error or other abnormal event, SwLePS
returns false
and ends the job.