// COMPLETE THREAD

Re: Microsoft's CryptoAPI - thoughts?

2 expanded posts ยท every known parent and child

NODE 4740409eRe: Microsoft's CryptoAPI - thoughts?
At 03:24 PM 1/26/96 GMT, John Lull wrote:
>On Fri, 26 Jan 1996 03:02:56 -0500 (EST), Futplex wrote:
>
>> Has someone here managed to extract PostScript hardcopy of the CAPI from this
>> Web page? I tried earlier this evening and wound up with a miniature 
>> ecological disaster on my hands. The page says:
>
>No problem on a LaserJet 4M.
>
>
>
>> "For ease of online reading and printing, we've provided copies of this
>> lengthy document in Microsoft Word and Postscript formats."
>
>I tried printing the Word version from WordView, also, and ran into
>major problems.  It absolutely insisted on setting the printer to
>manual feed, and when I tried to print the odd-numbered pages,
>WordView crashed complletely.
>
>> Worse still, it appears that the
>> capiapp.ps file is actually a catenation of many PostScript files (one per
>> chapter?), each beginning with a version of this ensnarling line.
>
>Maybe that's why I couldn't extract odd & even-numbered pages.
>
>
>

The odd command line in the postscript file is specific to HP laserjet's.
It is a command that tells the printer to switch to postscript mode.  The
Microsoft print drivers are bad about this.  One option is to strip all
occurances of this line from the file or load and print the file from
GhostScript, a postscript processor.

Hope this helps.

Lou Z.
Lou Zirko                                (615)851-1057
Zystems                                lzirko@isdn.net
"We're all bozos on this bus" - Nick Danger, Third Eye
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzBLJocAAAEEAMlDzYJPYq0pvfMuSiKU0Y65L2nJql+qEJHYGjO5Pys4prDw
YW1ooPWaqrPQAy/eyqrM7I9KNFDCtmaPxtgcPw2oEDfc/w6cPkrVzvovKLfHQvtg
V/hHUekptSf6j525omrVAoM9MxVL3sEGCjn9VrTeC3h9upkfntHOJeL88i2NAAUR
tB5Mb3UgWmlya28gPHppcmtvbEBkYXRhdGVrLmNvbT4=
=Qlxm
-----END PGP PUBLIC KEY BLOCK-----
NODE 2defd240[NOISY] Printing Microsoft's CryptoAPI .ps
The problems futplex et al were having are the result of a known
incompatibility between Windows [95] and many print spoolers. You can fix
it like so: 

Date: Thu, 14 Dec 1995 17:41:02 -0800 (PST)
From: Rich Graves <llurch@networking.Stanford.EDU>
To: win95netbugs@lists.Stanford.EDU
Subject: Fix for PostScript printer "PJL" Error (printing PostScript code rather than image)

Shamelessly lifted from the discussion forum on NetWork 
World's Web site, http://nwfusion.com/

-rich
 owner-win95netbugs@lists.stanford.edu
 ftp://ftp.stanford.edu/pub/mailing-lists/win95netbugs/
 gopher://quixote.stanford.edu/1m/win95netbugs
 http://www-leland.stanford.edu/~llurch/win95netbugs/faq.html

>From ohara on Wed Nov 1 12:14:40 1995

I have a problem when printing to postscript printers spooled from unix 
hosts. I am running Win95 and FTP Software's
Interdrive 95 (for the lpr client).

The problem is that the printer spits out pages of postscript code 
rather than the page the code represents. This
happens only when I print over the network. If I plug directly into the 
printer, everything works fine.

It seems that Microsoft improved the pscript.drv to also send "PJL" code 
to printers. Thus, the actual postscript is
surrounded by PJL. Redirect a postscript printer to a file and take a look.

Unfortunately, this causes the spooler on the unix host to identify the 
print job as a plain ascii file, rather than a
postscript file. Other than manually editting every print job and 
copying it to the printer port, is there a way to
eliminate the PJL and get my networked printers working again?

-Bob


>From ohara on Thu Nov 2 11:23:54 1995

I have figured out how to excise the offending PJL commands from the 
postcript output stream. Every printer that is
added to Win 95 puts a unique file into the windows system directory. In 
my case the file is ibm4039p.spd. This file
seems to be a control file for pscript.drv as well as the customization 
of the properties dialog for the printer. 

In my case there are several lines that include the word "PJL": 

*Protocols: PJL TBCP

and

*JCLBegin: "<1B>%-12345X@PJL JOB<0A>"
*JCLToPSInterpreter: "@PJL ENTER LANGUAGE = Postscript <0A>"
*JCLEnd: "<1B>%-12345X@PJL EOJ <0A><1B>%-12345X"

When I deleted these lines from the .spd file and restarted Win95, the 
problem was gone. -Bob
===========================================================================
Sent through the win9netbugs list. To unsubscribe, send an email message to
majordomo@lists.stanford.edu with "unsubscribe win95netbugs" in the *body*.
Note spelling. URL for FAQ and further info is in each message's X-headers.