Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. alexcher

    deflate embeded font

    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...
  2. alexcher

    How to catch %%Page: with Acrobat distiller ?

    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...
  3. alexcher

    embedding ttf fots inside raw postscript file.

    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
  4. alexcher

    How to catch %%Page: with Acrobat distiller ?

    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...
  5. alexcher

    How to read date and time

    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)...
  6. alexcher

    How to read date and time

    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
  7. alexcher

    Postscript Newbie - Distiller

    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...
  8. alexcher

    Numcopies ??

    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
  9. alexcher

    drawing irregular grid, and trying to debug code in general?

    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...
  10. alexcher

    Convert a pcl file to a ps file (command line)

    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
  11. alexcher

    offending command: E ?

    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
  12. alexcher

    Change trays ??

    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...
  13. alexcher

    merge data with postscript

    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...
  14. alexcher

    Encoding problem with the Euro currency Symbol

    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...
  15. alexcher

    Determine color info for pages

    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
  16. alexcher

    Example of printobject

    I guess, the main problem is to get the image parameters from the JPEG file and rewind it. PostScript 3 supports reusable streams. Earlier version can read image data from the string. A procedure data source can read data from an array of strings. You can also include the image twice or...
  17. alexcher

    EPS in form / limitcheck

    Your form cache may be too small. Try to increase it. You can also consider running the EPS directly from the disk or memory. You can try to compress the EPS file and run it through a decoding filter. I love to debug PostScript code. Where are you ? I'm in Philadelphia, PA. -- Your PostScript...
  18. alexcher

    Text-wrapping in PostScript?

    PostScript interpreter doesn't have any access to kerning pairs. So the sophisticated formatting is not possible. Try to do the formatting on the host. PostScript is also about 100 times slower than C. Your PostScript expert is just a click away. http://www.coscript.com
  19. alexcher

    Idiom Recognition. How is it works?

    The idiom recognition is very simple process. You have a pair of procedures: a template and a substitute. bind operator first binds the operand. Then it compares it recursively with the template. If they are equal the substitute is returned. Regatding the problem, there's no magic but some...

Part and Inventory Search

Back
Top