Changes between Version 2 and Version 3 of GhostScriptRasterPrinting
- Timestamp:
- Sep 22, 2010, 8:36:25 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GhostScriptRasterPrinting
v2 v3 30 30 The additional Epson printers listed above are now (as of version 9.00) included in Paul Smedley's distribution of GhostScript. 31 31 32 It's possible to send the print job directly from the application --> GhostScript --> printer without having to go through the intermediate stage of running GSView. This is made possible using the new [http://svn.netlabs.org/unipdr U niPdr] universal port driver:32 It's possible to send the print job directly from the application --> GhostScript --> printer without having to go through the intermediate stage of running GSView. This is made possible using the new [http://svn.netlabs.org/unipdr UNI.PDR] universal port driver: 33 33 34 34 * Install UNI.PDR (to \OS2\DLL) 35 35 * Create a new port of type UNI. 36 * Edit the port properties. We need to send the print job through two programs: GhostScript, followed by whatever command actually sends the job to the printer. Unfortunately, U niPdrdoesn't seem to support piping the job through multiple programs, so you have to write a REXX script (or something similar) which does the work.36 * Edit the port properties. We need to send the print job through two programs: GhostScript, followed by whatever command actually sends the job to the printer. Unfortunately, UNI.PDR doesn't seem to support piping the job through multiple programs, so you have to write a REXX script (or something similar) which does the work. 37 37 38 38 I've used the following script to print to a TCP/IP (LPD) printer on the network: … … 40 40 {{{ 41 41 /* GS2LPR.CMD - print to a TCP/IP printer through GhostScript, using LPR. 42 * 42 43 * The top-level GhostScript directory should be set in the environment 43 44 * variable GHOSTSCRIPT (or just edit the path directly in the file, below). 45 * 44 46 * Syntax: GS2LPR <model> <LPD server> <LPD printer> %file% 45 47 */ 48 49 CALL RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' 50 CALL SysLoadFuncs 51 46 52 PARSE ARG model server printer jobfile 47 53 IF jobfile == '' THEN RETURN 1 … … 78 84 }}} 79 85 80 Using the above, the following [http://svn.netlabs.org/unipdr U niLpr] settings will allow printing to a networked LP-9400 printer with TCP/IP address 192.168.1.100:86 Using the above, the following [http://svn.netlabs.org/unipdr UNI.PDR] settings will allow printing to a networked LP-9400 printer with TCP/IP address 192.168.1.100: 81 87 82 88 * '''Path and file:''' {{{cmd.exe}}} … … 89 95 It may also be possible to print to a local (LPT/COM/USB) printer using the OS/2 'print' command or somesuch program, but I haven't tried this. 90 96 97 Of course, you can also use the above script to print a pre-existing PostScript file from the command line. 98 91 99 -- Added by Alex Taylor