You need to read the data from the current file and
construct the array at run time. I didn't test this code.
Debugging is left for the exercise of the reader.
/read_sfnts
{
/sfnts [
currentfile 0 (%%EndBinary) /SubFileDecode filter
/ASCII85Decode filter /FlateDecode filter
{ dup 4096 string...
You can always preprocess your files by a small sed/Perl/C program. Use dscparse.c from Ghostscript as an example of a general-purpose DSC parser.
A pure Distiller solution requires a DSC parser implemented in PostScript. You can use reusable streams to store large chunks of data...
Are you using the right tools for the job ?
Ghostscript already has PDF to high level PostScript
conversion. (ps2write driver). Your problem can
be solved in 1 line of a shell script.
Your PostScript expert is just a click away.
http://www.coscript.com
Consider Ghostscript. Among other things it can run associate
user's procedures with DSC comments.
Re DCS to composite conversion, it is rather sifficult.
In may opinion, the easiest way is to render the separations
into a raster images and combine them.
You can try to use /Separation trick...
The following was tested on GNU+Linux. I have no idea whethe this works on the MS-DOS family of operating systems.
Type the following on one terminal:
mkfifo foo
while true; do date >foo; done
Type the following on another terminal, in the same directory.
gs -dNODISPLAY
/t { (foo)(r)...
A host-based PS interpreter can access the file system including named pipes and devices. So the possibilities are
endless.
Your PostScript expert is just a click away.
http://www.coscript.com
You need to write
(foo bar) shoe
5 currentpoint exch pop 12 sub moveto
for every line on the page and finish the page with
showpage
With the PostScript header you can process the output stream
on the PostScript device without any changes to the program.
Merging the header and the...
The magical variable #copies is likely to be supported on all devices. I'd try the 2nt method first because it's easier to code.
Your PostScript expert is just a click away.
http://www.coscript.com
You can yse -dESTACKPRINT flag to print out the execution stack in Ghostscript. You can also check what shading fill
can do for you in Level 3.
Regarding the grid structure, the arrays use memory and cause expensive garbage collection. Besides, even a simple PS operator takes over 100 computer...
Use GhostPCL from Artifex Software to convert PCL to PDF and convert PDF to PS using Acrobat Reader. The high level PS generator for Ghostscript is under development now but you can help us to test it.
Your PostScript expert is just a click away.
http://www.coscript.com
The program is correct.
I think that the pronter need some control commands. If you can print to this printer from any othe application try to save the print stream to a file and check the content.
Your PostScript expert is just a click away.
http://www.coscript.com
You need to do the following:
(1) Figure out what tray selection keys are used in your file.
(2) Get the new tray selection code from the PPD for IBM 2015.
(3) Redefine setpagedevice operator to convert old keys to new keys.
Don't forget that one rejected key in the setpagedevice dictionary...
PostScript is a general purpose programming language. Many host-based PostScript interpreters can read (and write) external files. On Unix-like systems the file can be a named pipe connected to another process. So the possibilities are endless.
I recommend to use Ghostscript to convert the PS...
The most simple technique for printing unusual characters is glyphshow operator.
/Euro glyphshow
You can also create a custom encoding for the character set you are using in the document. Since the file look right in Ghostscript, your tools have done this for you.
The Eure glyph should be...
Don't forgget that the color vs. black-and-white property depends on the CDR installed on the device. You need to copy CRD;s from your target inteerpreter to Ghostscript before rasterizing.
--
Your PostScript consultant is just a click away.
http://www.coscript.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.