HDTenEightyP/NetNews huggingface dataset:
From: adap@edmund.cs.andrews.edu (Edsel Adap)
Subject: PS --> PCL Converter
Organization: Andrews University
Date: Tue, 26 Jan 1993 03:34:53 GMT

Does anybody here know of a program for the AMIGA to convert postscript
files to PCL files? Or a utility to print Postscript on an HP laserjet II?

If this is a FAQ, sorry, don't know where to find the FAQ list.

I don't read this newsgroup very often so please reply by email.

adap@andrews.edu
--
"That girl is one of the least benightedly unintelligent organic life
forms it has been my profound lack of pleasure not to be able to avoid
meeting."
________________________________________________________________________________
|    Procrastination is my sin          | Edsel Adap
|    It brings me naught but sorrow     | Computer Science / Mathematics Major
|    I know that I should stop it       | Andrews University
|    In fact I will -- Tomorrow!        |
|                         -Gloria Pitzer| adap@cs.andrews.edu
--------------------------------------------------------------------------------
Newsgroups: comp.lang.postscript
From: phychenk@nuscc.nus.sg (Chen Kan (Dr))
Subject: Postscript printing problem
Organization: National University of Singapore
X-Newsreader: Tin 1.1 PL4
Date: Wed, 27 Jan 1993 06:24:12 GMT


I have encountered the following error message:
	Offending Command = setlinecap
	Error = nametype:rangecheck

	Stack=
		22474
when I print out certain Amipro documents. 

Any pointers to the cause of the problem? 

		Thanks in advance
			Kan
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Page accounting
Keywords: postscript, page, accounting
Date: 22 Jan 93 06:21:53 GMT
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout

In article <86579@ut-emx.uucp> tai@utpapa.ph.utexas.edu (Tai Morris) writes:
<I'm new to this newsgroup so I hope this question hasn't been answered
<too many times already...
<
<I need a program that parses a postscript file to see how many pages will
<be printed. Please don't tell me this is impossible - it's impossible that
<it is impossible because postscript printers know how to parse postscript
<files. Otherwise, the printer could be fooled, too.

You are right in that this question gets asked and answered ALL the time.

The only program that can give you an accurate count of pages for ALL types
of PostScript files is a PostScript interpreter...yep, the PostScript printer.
The only other method is to use GhostScript, another PostScript interpreter.
I believe someone has some kind of post processing that will get the final
page count from GhostScript.

In other words, you just can't "look" at the file and find the magical page
count buried within ALL types of PostScript files.

BTW, in theory, one could write a piece of PostScript code that would print
pages until the power failed.  You'll never get a page count from that program.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: SUMMARY: How can I tell if a PS file is in color?
Organization: Purdue University
Date: Thu, 21 Jan 1993 18:11:50 GMT

In article <C15wH7.KpH@newsflash.concordia.ca> peter@Civil.Concordia.CA (Peter  
Kaldis) writes:
> These get the color, and set the color, respectively. So doing a simple
> grep on the file and searching for words like "color" should do the trick
> Thanks Jon.

I meant to reply to you, but I've been ill.  You can also
wedge all the painting commands (stroke, fill, show,
etc.) with a stub routine that checks the current color.
If it's not a gray shade, you can print a message back down
the error channel.  I could modify my debugdict to do that
pretty easily.  (Jon knows what I'm talking about.
right?)

That would work in nearly any case (if they insist on using
things in systemdict it won't), and you'd only need to
preface your file with a new header and print it once to any
device (or run it through GhostScript or something).

If you'd like to see that solution, I'll post it, but I
haven't written it yet.  (It shouldn't be very hard to make
from what I already have though.)

ab
From: Joe Cornelius <ccfr001@utxvm.cc.utexas.edu>
Newsgroups: comp.lang.postscript
Subject: Can I redefine the appearance of one character in a Type 1 font?
Date: 27 Jan 1993 00:32:59 GMT
Organization: University of Texas at Austion Computation Center
Distribution: world
NNTP-Posting-Host: wch-mac5.cc.utexas.edu
X-UserAgent: Nuntius v1.1.1d12
X-XXMessage-ID: <A78B35557F018619@wch-mac5.cc.utexas.edu>
X-XXDate: Tue, 26 Jan 93 13:37:09 GMT

I would like to modify the appearance of a character in a Type 1 font (in
this particular case, the lowercase Helvetica el "l").  Can this be done
and, if so, can someone point me in the right direction?

My first attempt was to copy the type 1 font into a new type 3 font, add
a buildchar routine and redefine the drawing procedure for the character
I wished to change but I cannot figure out a way to execute the
proprietary drawing routines once they are in a Type 3 font.  If someone
knows a way to do this, or another approach altogether, I would
appreciate the help.

Thanks in advance,

Joe Cornelius

Internet: ccfr001@utxvm.cc.utexas.edu
Newsgroups: comp.lang.postscript
From: mek@hydrox.enet.dec.com (Mark Klamerus)
Subject: PostScript Encoding/Decoding Filters
Date: Tue, 26 Jan 93 18:13:06 PST
X-Received: by usenet.pa.dec.com; id AA11541; Tue, 26 Jan 93 18:13:08 -0800
X-Received: by enet-gw.pa.dec.com; id AA02032; Tue, 26 Jan 93 18:13:06 -0800
X-Received: from hydrox.enet; by decwrl.enet; Tue, 26 Jan 93 18:13:06 PST
X-To: comp.lang.postscript.usenet
X-Apparently-To: comp.lang.postscript.usenet


	Does anyone have any examples of PS files using
	any of the Encoding/Decoding filters for images
	(especially LZW, RunLength, CCITT, and DCT)?

	We're trying to put together an output filter to
	create Encoded PostScript to take advantage of
	one of our Level 2 printers, but are finding that
	the examples are pretty skimpy.  The original
	data is black and white, but if we can handle
	creating that well, will try for grayscale and
	color.

	thanks,

	Mark
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: Unprintable regions - definitive answer sought
Organization: Purdue University
Date: Mon, 25 Jan 1993 17:24:08 GMT

In article <C1EMrJ.2M3@mnveger.uucp> michaelv@mnveger.uucp (Michael Vishchers)  
writes:
> This may sound like a silly question, but I would like to know if i
> can expect a point with given coordinates to have the same vertical and
> horizontal distances from the lower left corner on any printer.

The Red Book says (New page 151, old page 65) that you can,
and it's close to right.  The only problem you'll have is
with registration and some broken interpreters.  I
recently heard of a non-Adobe implementation that
seemed to have the origin consistently off the bottom
left corner.

> A problem arises when the printer has unprintable regions, i.e., cannot
> print on the margins. What should I expect if I printed a square box
> with sidelength 1 inch, placed at the origin ? If a printer cannot print
> on, e.g., the left and bottom half inch of the paper, will I see a
> smaller box with the upper right corner at (1 inch, 1 inch), or will I see
> a full but translated box ?

You will get the upper right corner of the box drawn in the
right place, but those sides will end at the margin.  You
won't see the bottom or left side at all. 

In other words, the unprintable region won't be inked,
but it should be handled correctly.  Some devices have
large unprintable regions, some have none (within the
paper, I mean :-) ).  I commonly print out signatures on a
Linotronic, for instance, where the letter-sized pages
are completely usable.  

> I couldn't find an answer in the FAQ or the Red Book, so does anyone know
> if there is a standard behaviour ?

I pointed to the Red Book, but I guess that doesn't quite
explain it.  Do you know what a clipping path is?  Imagine
there's a clipping poath at the margin (there probably
is, actually) that keeps you from drawing outside of
that.  Now imagine the default coordinate system
originates at the lower-left of the page and that the axes
go right and up.

In that situation, something drawn at 100, 100 should be
100 units up and right of the lower-left corner of the
page.  The registration of paper through the printer
mechanism may make that slightly wrong, but it should be
close.  Print several sheets and see how much they vary.

Something drawn very near the origin will get clipped by
the clipping path (or the physical extent of the printing
area, whichever is smaller), but will be in the correct
place.

ab
Newsgroups: comp.lang.postscript
From: andrew@frip.WV.TEK.COM (Andrew Klossner)
Newsgroups: comp.lang.postscript
Subject: Re: Summary: Color/Not Color
Date: 26 Jan 93 19:08:32 GMT
Reply-To: andrew@frip.wv.tek.com
Organization: Tektronix Color Printers, Wilsonville, Oregon

[]

	"PostScript is designed to be "device independent"--you're not
	supposed to CARE where your document's going."

Yes and no.  You are able to write device independent PostScript code,
if you assume a page size.  But the interrogation features of
PostScript, when used with a bidirectional communication port, can make
the user's life a lot easier.  For example, I have seen helpful
applications that know whether the destination printer handles color,
and disables the select-color commands if not.  This sort of immediate
feedback can help decrease the number of the user's misconceptions.

Macintosh users take this sort of thing for granted, because AppleTalk
is bidirectional.  IBM PC users do not, because the typical parallel
port is unidirectional.

  -=- Andrew Klossner  (andrew@frip.wv.tek.com)
                       (uunet!tektronix!frip.WV.TEK!andrew)
From: clewis@ferret.ocunix.on.ca (Chris Lewis)
Newsgroups: comp.lang.postscript
Subject: Re: Selective Printing
Date: 24 Jan 93 15:57:51 GMT
Organization: Elegant Communications Inc., Ottawa, Canada

In article <1993Jan24.100201.13936@sol.ctr.columbia.edu> zarthac@bradley.edu (Matt Simmons) writes:
|Steve Gabrilowitz (steveg@iplmail.orl.mmc.com) wrote:
|: In article <1993Jan22.021050.10101@VFL.Paramax.COM>, wrp@pslsrv1.gvl.unisys.com (Bill Pringle) writes:
|: |> In article <1993Jan20.030501.13068@cucs5.cs.cuhk.hk> mklai@ie.cuhk.hk (Edmund M K Lai) writes:
|: |> >Are there any public domain software that allows the user to 
|: |> >print only selected pages from a large postscript file?
|: |> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|: |> You can try my pspages.  It will let you print any set of pages,
|: |> as well as even or odd.  It will also print them in reverse order
|: |> if you ask it nicely. :^)
|: |> ============================================================================

|: What platform is it for?  Where is it available?  Filename?

|Of course, you can always try the ones from psutils... archie for it...

Or, you could refer him to the PostScript FAQ, where pspages, psutils and
psxlate (which can also do several different page shuffles) are listed.

[1K of excessive signature deleted.  Do us all a favour, and shorten
your signature down to something more reasonable.  Bandwidth costs money.
And your signature almost doubled the cost of your posting.  Irritates
the hell out of a lot of people.  This is also discussed in several
FAQs.  In particular, Emily Postnews...]
-- 
Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
Ferret list: ferret-request@ferret.ocunix.on.ca
From: ab@nova.cc.purdue.edu (Allen B)
Newsgroups: comp.lang.postscript
Subject: Re: FAQ: how do I print in landscape mode
Date: 21 Jan 93 18:39:57 GMT
Organization: Purdue University

In article <1993Jan19.151653.589@cfa203.harvard.edu> alberto@cfa203.HARVARD.EDU  
(Alberto Accomazzi, WIPL, B-234, x57076) writes:
> The simple solution that I have found and that works
> for some of the files is to stick the following PS code at the
> beginning of the file:
> 
>         90 rotate llx neg ury neg translate

You should also redefine showpage in terms of the current
definition of showpage.  Don't base yours on systemdict. 
Do something like: 

/oldshowpage /showpage load def

/showpage
{
	oldshowpage
        90 rotate llx neg ury neg translate
} def

Some printers have a function called setpageparams that
allows you to use different paper sizes.  Will
GhostScript do that?  There are better ways in Level 2
also.

> For some of the files that I have come across, however, the approach
> described above fails due to the presence in the PostScript code of
> calls to initgraphics or other weird commands that screw up the
> graphics state.  So my question is this: is there a general,
> bullet-proof way of printing any PostScript document in landscape
> mode, no matter what the code looks like?

If they use initgraphics, don't use their program.  You
can redefine initgraphics as well, but yuck! 

Nearly all the important PostScript I print here gets
headers similar to the one described above (sometimes as
many as four of them) tacked on it.  That's to accommodate
different paper sizes, pasteup formats, environments,
etc.

If a program generates PostScript that won't cooperate,
they should fix their program.  Send them a letter or call
tech support and ask >them< for a way to do what you want.

I know in the generic case, that's not a solution, but
generic solutions fall apart if they try hard enough. :-) 

ab
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: Is there a PostScript Code Beautifier?
Organization: Purdue University
Date: Mon, 25 Jan 1993 19:33:59 GMT

In article <1993Jan25.181959.5976@murdoch.acc.Virginia.EDU>  
filipi@cebaf9.cebaf.gov (Adrian Thomas Filipi-Martin) writes:
> 	As the subject says, "Is there a PostScript Code Beautifier?" I would 
> like to be able to reformat computer generated code to make it more human 
> readable. 
> 
> 	If there isn't one. Is there any standard way that people like to 
> fomat their code? I may wirte asimple one myself, if necessary.

I have been working on a set of code format
recommendations, similar to the C style guide.  I'm not
done yet, but was hoping to be before the sources group got
started.  If there's interest, I'll post some drafts next
week.

As for code formatters, no, I haven't seen any, though
I've heard there are some.  If the code to be formatted is
really bad, the formatter would almost need to be written
in PostScript or possess big chunks of a PostScript
interpreter.  I'd be willing to try to give an alleged
formatter a heart attack. :-)

ab
Newsgroups: comp.lang.postscript
From: ken@racerx.bridge.COM (Ken Hardy)
Newsgroups: comp.lang.postscript,comp.periphs.printers,comp.sources.wanted
Subject: Re: Postscript to HPGL
Keywords: HPGL postscript plotter
Date: 25 Jan 93 20:28:01 GMT
Followup-To: comp.lang.postscript
Organization: Planet Earth

In article <C18FLF.JpG@avalon.nwc.navy.mil> mcclung@archimedes.nwc.navy.mil (Scott McClung) writes:

>on converting Postscript to HPGL, on a Sun Sparc 2. (4.1.x)  If you have
>any such information, please E-mail your responses to me.  I will 

This must be the F-est of all FAQs.  Read the FAQ posting.

(I believe the stock answer is ghostscript, though the version I have
*always* prints one page per file, not directly directable to the
spooler via stdout.  The results look good, but I wasn't too happy with
the process I had to go through to get it from PS to file to printer.
Fortunately, I've since obtained access to a PS printer.  I've not read
the FAQ recently myself.)

In article <4825@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:

>You didn't mention why you would want to do such a thing.

Duh, maybe because he already has a 300 dpi laser printer and hopes
that he can conserve precious landfill space by finding a way to use it
with newer software?

>HPGL has nowhere near the power of PostScript.  There are no fonts, etc.

The PS _language_ is a lot more powerful.  The proper software on a
workstation, however, should be able to produce the same arrangement of
those 300 dpi on an HPGL printer as would a printer with on-board PS.

>big step backward.  If you have a SS2, you should have a PostScript printer.

Down with the categorical imperative!  Given that you feel so strongly
about it, why don't _you_ buy him one? ;-)  BTW, what's a PS cartrige
cost for an HP printer, and what's the lowest/oldest model that can
accept it?  That might be his best answer.

-- 

Ken Hardy
ken@bridge.com  (racerx!ken)
From: bob@comlab.gatech.edu (Bob Baggerman)
Newsgroups: comp.lang.postscript
Subject: Re: Duplex printing
Date: 28 Jan 93 18:40:30 GMT
Organization: GTRI Communications Lab

A couple of days ago I asked about putting an HP LaserJet IID into duplex
mode.

>I have an HP IID laser printer with the HP PostScript cartridge (not the
>Plus cartridge).  The HP IID has a duplex mode where it will print on
>both sides of the page.
> 
> [ I describe what I have looked at and tried. I present the following frag. ]
>
>statusdict begin
>true setduplexmode

A number of people pointed out that an "end" statement after the above 
commands may help.  Thanks to all who replied.  As it turns out I will
probably never know for sure.  As Leif Arne Neset pointed out, evidently 
both pages of a duplex page must be in memory before the sheet can be 
printed.  Upon closer examination of the HP documentation I found a table
which stated that duplex printing *requires* 4MB of additional add in memory.
Alas, we only have 2 MB in this printer.  Rather than print them out in
in non-duplex, it just pukes on the whole print job.  Lots of pretty blinking
lights but that's about it.

Thanks again to:

Steven Parkes      parkes@uiuc.edu
Andrew Klossner    andrew@frip.wv.tek.com
Leif Arne Neset    leifa@ifi.uio.no
Wolfgang Hecht     hecht@fub46.zedat.fu-berlin.de
Hal Eden           haleden@cs.colorado.edu
N K Krishnan       krishnan@hplnkk.hpl.hp.com
Desh D. Sharma     ddsharma@watmath.uwaterloo.ca

Bob

-- 
Bob Baggerman                         !  bob.baggerman@gtri.gatech.edu
Communications Laboratory             !  bob@comlab.gatech.edu
Georgia Tech Research Institute       !  qseclrb@prism.gatech.edu
Atlanta, GA  30332  USA               !  404-894-3525
Xref: sparky comp.lang.postscript:6508 comp.periphs.printers:4078 comp.sources.wanted:5845
From: bs@Germany.EU.net (Bernard Steiner)
Newsgroups: comp.lang.postscript,comp.periphs.printers,comp.sources.wanted
Subject: Re: Postscript to HPGL
Date: 28 Jan 1993 13:00:42 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: qwerty.germany.eu.net
Keywords: HPGL postscript plotter

In article <4843@vidiot.UUCP>, brown@vidiot.UUCP (Vidiot) writes:
|> Next comes the curves.  HPGL doesn't have Bezier curve functions.  Those
|> functions won't translate either.

I seem to recall (from a LJ IV manual) that there are commands for
Bezier curves.

But then, you still need the technical refman because the users' manual
doesn't explain how to actually use the commands.

Cheers,
	Bernard
-- 
===    ____                          ===   EUnet Deutschland GmbH
===   /      /   /   ___    ___  _/_ ===   Emil-Figge-Str. 80
===  /----  /   /  /   /  /___/  /   ===   D-W-4600 Dortmund 50
=== /____  /___/  /   /  /___   /    ===   Germany
=====                              =====   Vox +49 231 755 2444
===== Connecting Europe since 1982 =====   Fax +49 231 755 2386
Newsgroups: comp.lang.postscript
From: ab@nova.cc.purdue.edu (Allen B)
Subject: Re: Postscript to HPGL
Organization: Purdue University
Date: Thu, 28 Jan 1993 18:19:28 GMT

I don't know squat about HPGL, but supposing you had a way
to turn a PostScript run into low level drawing commands
(by wedging moveto, lineto etc.).  How hard would it be to
form similar HPGL commands?  I ask because I >do< have a
PostScript tool similar to that.

ab
From: gerry@keele.ac.uk (G.D.Pratt)
Subject: Re: Is there a PostScript Code Beautifier?
Organization: Keele University, England
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 26 Jan 1993 10:47:58 GMT

Adrian Thomas Filipi-Martin (filipi@cebaf9.cebaf.gov) wrote:
: 	As the subject says, "Is there a PostScript Code Beautifier?" I would 
: like to be able to reformat computer generated code to make it more human 
: readable. 
: 
There is one at the ADOBE archive which you can ftp to with

	ftp ftp.ADOBE.COM

It is in the directory /pub/adobe/Programs:-

-r--r--r--  1 root     system      10745 May  1  1992 psformat.shar


--
gerry pratt - workstation support programmer - university of keele - ENGLAND
email:  gerry@seq1.keele.ac.uk ( DYNIX? - just say no!! ) tel:UK 0782 583072
"these opinions are mine, mine, Mine, Mine, MINE......ALL MINE I TELL YOU!!"
Newsgroups: comp.lang.postscript
From: marshall@software.org (Eric Marshall)
Subject: question about restore
Organization: Software Productivity Consortium, Herndon, Virginia
Date: Wed, 27 Jan 1993 21:49:01 GMT

	In the following code fragment:

	save
	  /three 3 def
	  three  % works fine
	restore

	three    % causes "undefined" error

I do not understand why three is not defined after the restore. 
The red book says that restore does not affect the contents of the
dictionary stack, but there is obviously something more to it than
that.  Could someone please explain this to me?

	Thanks in advance.


Eric Marshall
Software Productivity Consortium
SPC Building
2214 Rock Hill Road
Herndon, VA 22070
(703) 742-7153

marshall@software.org
From: arras@cobia-f.icase.edu (Michael Arras)
Newsgroups: comp.lang.postscript
Subject: Summary: Color/Not Color
Date: 25 Jan 1993 02:57:42 GMT
Organization: ICASE/NASA Langley
Distribution: world
NNTP-Posting-Host: cobia.icase.edu

	Last week I asked whether or not it was possible to query a PS
printer to find out if it had color capabilities.  The only responses I
received mentioned that I should check if systemdict /colorimage is known.
Unfortunately, this does not work.  If it did the following program would
work:

%!
200 200 moveto
/Helvetica findfont 20 scalefont setfont
systemdict /colorimage known {
	(This is a color printer) show
} {
	(This is not a color printer) show
} ifelse
showpage

This program prints `This is a color printer' no matter what printer I
print it on (color or not color).  Someone mentioned that I redefine
/colorimage, but this will not solve my problem, nor will it produce the
correct output in the program above.  I find it hard to believe that PS
does not have a built-in set of commands that can be used to find out if
the printer being printed on is a color printer or not.

Michael Arras                      Bavarian Research Center
arras@forwiss.uni-erlangen.de      for Knowledge-Based
Artificial Neural Network and      Systems_________________
Fuzzy Logic Research Group         FORWISS   ERLANGEN * MUNICH * PASSAU
Newsgroups: comp.lang.postscript
From: xenidis@maccs.mcmaster.ca (Jimi X)
Subject: FAQ? :) how 2 print a 4 page figure across 4 pages
Organization: Department of Computer Science, McMaster University
Date: Sun, 24 Jan 1993 01:44:00 GMT


Hi there,

	I breezed through the FAQ and couldn't find what I'm looking for.

I have wrote this program that writes postscript plots. these plot are
one page high (11") but typically 4 pages wide.

It would not be easy at all to seperate the pages before the postscript
stage....


How do I get this file to print out on for pages???? (HELP!)

BTW right now I just repeat the file 4 times with a translation before
it but this result in almost a 2Mb postscript file.... (takes forever)

-jimi x


Newsgroups: comp.lang.postscript