* Postscript Printing Problems (probably a pretty easy one!)
@ 1998-05-07 4:00 Dean J.
1998-05-07 4:00 ` Patrick Leung
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Dean J. @ 1998-05-07 4:00 UTC (permalink / raw)
I recently obtained nenscript to print code we're developing (ascii to
postscript - to allow landscaped mode printing etc.). I've successfully
compiled/installed the thing.
My problem is that the printers (as they are currently configured) on
the network don't seem to support Postscript characters. Instead, I just
seem to be getting a postscript file printed out in its literal ascii
representation (e.g. %%Title ..., %%Creator ... plenty of Postscript
instructions, but nothing formatted).
I originally configured the printers using the System
Administrator/Printer Configuration tool which is part of Digital Unix
4.0D's system admin toolset.
Is there someway I can rectify the problem, i.e. get my printers to
support or interpret the Postscript files correctly?
Many thanks, Dean J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postscript Printing Problems (probably a pretty easy one!)
1998-05-07 4:00 Postscript Printing Problems (probably a pretty easy one!) Dean J.
1998-05-07 4:00 ` Patrick Leung
@ 1998-05-07 4:00 ` Emmanuel Choquet
1998-05-07 4:00 ` Emmanuel Choquet
1998-05-11 4:00 ` Don't use lpd remote when you can use tcp/ip Ernest LaBonte
3 siblings, 0 replies; 5+ messages in thread
From: Emmanuel Choquet @ 1998-05-07 4:00 UTC (permalink / raw)
To: Dean J.
Dean J. wrote: My problem is that the printers (as they are currently
configured) on
> the network don't seem to support Postscript characters. Instead, I just
> seem to be getting a postscript file printed out in its literal ascii
> representation (e.g. %%Title ..., %%Creator ... plenty of Postscript
> instructions, but nothing formatted).
>
> I originally configured the printers using the System
> Administrator/Printer Configuration tool which is part of Digital Unix
> 4.0D's system admin toolset.
>
> Is there someway I can rectify the problem, i.e. get my printers to
> support or interpret the Postscript files correctly?
What kind of printer do you use ?
if you have HP printer with jecdirect, one port, for instance configure
twice your printer
Assuming jet_address is the TCPIP Address of the jet direct card :
lprsetup
"Command" add
"Enter printer name" HPascii
"Type of printer" remote
"Spool directory"
"Error log"
"Set remote system name 'rm' [] ?" jet_address
"Set remote system printer name 'rp' [] ?" TEXT
"Enter symbol name " q
accept the rest and then redeclare it as PS printer :
lprsetup
"Command" add
"Enter printer name" HPascii
"Type of printer" remote
"Spool directory"
"Error log"
"Set remote system name 'rm' [] ?" jet_address
"Set remote system printer name 'rp' [] ?" RAW
"Enter symbol name " q
Remark : jet_address must be in the /etc/hosts file
For other manufacturers see the documentation of the printer NIC, sometimes
you'll have to telnet onto it to configure.
Last words, if you spool on an NT machine, you must set your printer on WNT
:
this works same way on WNT 4.0 :
DOCUMENT:Q150930 28-AUG-1996 [winnt]
TITLE :LPD Server Adds and Prints Control Codes
PRODUCT :Microsoft Windows NT
PROD/VER:3.50 3.51
OPER/SYS:WINDOWS
KEYWORDS:kbnetwork
-------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Windows NT Workstation versions 3.5 and 3.51
- Microsoft Windows NT Server versions 3.5 and 3.51
SYMPTOMS
========
When a formatted job prints from an LPR client to a Windows NT computer
that is running the LPD services, PCL or PostScript codes are printed on
the output instead of a properly formatted document.
WORKAROUND
==========
In Windows NT 3.51, this problem can be prevented by reconfiguring LPD
to
ignore the control command and always assign the RAW datatype. However,
the code that implements this is not working. The code looks for a
registry
setting in the LPD key instead of the LPDSVC key. You can work around
this
problem by creating an LPD key at the same level of the LPDSVC key, and
then provide duplicate information of the LPDSVC key to the LPD key.
For Windows NT 3.51 to assign the RAW datatype, regardless of the
control file contents, do the following:
WARNING: Using Registry Editor incorrectly can cause serious, system-
wide problems that may require you to reinstall Windows NT to correct
them. Microsoft cannot guarantee that any problems resulting from the
use of Registry Editor can be solved. Use this tool at your own risk.
1. Run Registry Editor (REGEDT32.EXE).
2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters
3. On the Edit menu, choose Add Value.
4. Add the following:
Value Name: SimulatePassThrough
Data Type: REG_DWORD
Data: 1
NOTE: The default value is 0, which informs LPD to assign datatypes
according to the control commands.
5. To work around the problem mentioned above, create an LPD key at
the same level of the LPDSVC key.
6. Select the LPDSVC Key and choose Save Key from the Registry menu,
save the file as LPDSVC.KEY.
7. Select the LPD key created in step 5.
8. Choose Restore on the Registry menu and select the file created
in step 6. Click OK.
9. A warning message appears. Click OK and quit the Registry Editor.
10. At a command prompt, type:
net stop lpdsvc
11. At a command prompt, type:
net start lpdsvc
MORE INFORMATION
================
The Windows NT LPD Service follows the RFC1179 specification. This
states
that the LPR client must tell the LPD server how to handle the print
job.
If the client formats the job, it must send the "l" control character to
instruct the LPD server to print the job without any alteration.
Some LPR clients cannot be configured to send different control
characters
and always send an "f". This control character instructs Windows NT to
assign a data type of TEXT and to use the printer driver to create a new
print job that prints the text of the original job on the page. In the
case
of a postscript job, the new print job prints the original job's
PostScript
code on the page.
Good luck
--
Emmanuel Choquet
Informatique Client/Serveur
& Communication
_/
_/
_/ _/_/_/ _/ _/_/_/
_/ _/ _/ _/
_/ _/ _/ _/_/_/
_/ _/ _/ _/
_/ _/_/_/ _/ _/_/_/
ics@cica.fr
c/o Cica Tel: (33) 4 92.94.23.50
2229, route des cretes fax: (33) 4 92.94.23.54
06560 Sophia-Antipolis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postscript Printing Problems (probably a pretty easy one!)
1998-05-07 4:00 Postscript Printing Problems (probably a pretty easy one!) Dean J.
1998-05-07 4:00 ` Patrick Leung
1998-05-07 4:00 ` Emmanuel Choquet
@ 1998-05-07 4:00 ` Emmanuel Choquet
1998-05-11 4:00 ` Don't use lpd remote when you can use tcp/ip Ernest LaBonte
3 siblings, 0 replies; 5+ messages in thread
From: Emmanuel Choquet @ 1998-05-07 4:00 UTC (permalink / raw)
To: Dean J.
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
Sorry, at the second declaration, use ANOTHER name :
What kind of printer do you use ?
if you have HP printer with jecdirect, one port, for instance configure
twice your printer
Assuming jet_address is the TCPIP Address of the jet direct card :
lprsetup
"Command" add
"Enter printer name" HPascii
"Type of printer" remote
"Spool directory"
"Error log"
"Set remote system name 'rm' [] ?" jet_address
"Set remote system printer name 'rp' [] ?" TEXT
"Enter symbol name " q
accept the rest and then redeclare it as PS printer :
lprsetup
"Command" add
"Enter printer name" HPpostscript
"Type of printer" remote
"Spool directory"
"Error log"
"Set remote system name 'rm' [] ?" jet_address
"Set remote system printer name 'rp' [] ?" RAW
"Enter symbol name " q
Remark : jet_address must be in the /etc/hosts file
[-- Attachment #2: Type: text/html, Size: 1055 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Postscript Printing Problems (probably a pretty easy one!)
1998-05-07 4:00 Postscript Printing Problems (probably a pretty easy one!) Dean J.
@ 1998-05-07 4:00 ` Patrick Leung
1998-05-07 4:00 ` Emmanuel Choquet
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Patrick Leung @ 1998-05-07 4:00 UTC (permalink / raw)
install ghostscript and ghostview
you should be able to get it from sunsite
^ permalink raw reply [flat|nested] 5+ messages in thread
* Don't use lpd remote when you can use tcp/ip
1998-05-07 4:00 Postscript Printing Problems (probably a pretty easy one!) Dean J.
` (2 preceding siblings ...)
1998-05-07 4:00 ` Emmanuel Choquet
@ 1998-05-11 4:00 ` Ernest LaBonte
3 siblings, 0 replies; 5+ messages in thread
From: Ernest LaBonte @ 1998-05-11 4:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
Dean J. wrote:
> I recently obtained nenscript to print code we're developing (ascii to
> postscript - to allow landscaped mode printing etc.). I've successfully
> compiled/installed the thing.
>
> My problem is that the printers (as they are currently configured) on
> the network don't seem to support Postscript characters. Instead, I just
> seem to be getting a postscript file printed out in its literal ascii
> representation (e.g. %%Title ..., %%Creator ... plenty of Postscript
> instructions, but nothing formatted).
>
> I originally configured the printers using the System
> Administrator/Printer Configuration tool which is part of Digital Unix
> 4.0D's system admin toolset.
>
> Is there someway I can rectify the problem, i.e. get my printers to
> support or interpret the Postscript files correctly?
>
> Many thanks, Dean J.
[-- Attachment #2: asdf.txt --]
[-- Type: text/plain, Size: 2323 bytes --]
You didn't post the the printer type so I will assume it is an HP style
network printer with PostScript capabilities.
Print Queue Setup
DON'T USE LPD REMOTE printing when you can use tcp/ip printing.
HP JetDirect, and similar, cards provided tcp/ip socket
capabilities. This feature was added in V4.0a and is a better way
to go than lpd remote printing. Tcp/ip printing can use print
filters for file processing.
More on this later.
About PostScript files
Many programs expect PostScript files to start with %!. It is
common for PostScript files created by PC's to add stuff before
%! such as:
<ctrl-d>%!
or
<esc>%-12345....%!
When files don't start with %! the software attempts to convert
the file to PostScript. I expect this is where you are having
problems.
Converting text files to PostScript.
The file /usr/lbin/ps_level1of is a print filter that will convert
text to PostScript and pass PostScript files. The program can
recognize PostScript files starting with %! or <ctrl-d>%! . The filter
will assume files starting with <esc>%-12345....%! is a text file and
attempt to convert it.
This filter can print text files in landscape. If I recall
`lpr -w132' or `lpr -Olandscape' will provide landscape printing.
If the printer has a duplex ability try lpr -K2.
Setting up a tcp/ip socket printer.
This is documented in either the release notes or in the
system admin guide. Here are the key points.
- You must be able to ping the printer.
- You need to add the net card socket address in /etc/services.
For HP printers the address is usually 9100. So add something
like `pr_9100 9100/tcp' to the end of the /etc/services file.
Restart inetd eg:
> ps ax |grep inetd
537 ?? I 0:00.53 /usr/sbin/inetd
21029 ttyp2 S + 0:00.01 grep inetd
> kill -HUP 537
- Using lprsetup or printconfig create a print queue for a
ps_level1 printer. In lprsetup for
Set device pathname 'lp' [] ?"
specify
@printer.ip.address/pr_9100
- If everything went well you can print to the printer.
Sample Printcap Entry
lp|lp0:\
:if=/usr/lbin/ps_level1of:\
:lf=/usr/adm/lp0err:\
:mx#0:\
:lp=@printer.dec.com/pr_9100:\
:of=/usr/lbin/ps_level1of:\
:pl#66:\
:pw#80:\
:rw:\
:sd=/usr/spool/print/hp:\
:xf=/usr/lbin/xf:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-05-11 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-07 4:00 Postscript Printing Problems (probably a pretty easy one!) Dean J.
1998-05-07 4:00 ` Patrick Leung
1998-05-07 4:00 ` Emmanuel Choquet
1998-05-07 4:00 ` Emmanuel Choquet
1998-05-11 4:00 ` Don't use lpd remote when you can use tcp/ip Ernest LaBonte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox