🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10840

Quotas on printing PostScript files

#10840
From: -David C. Kovar
Date: Thu, 09 Feb 1989 06:39
29 lines
2085 bytes
>Is there anyway to implement a quota mechanism on print spoolers that
>would limit the size of otems that could be sent to the printer??
>...

--wnl:
>Well, there is a printcap capability called "mx" which sets the maximum
>allowable file size (in file system blocks) for queued files....  --wnl 

There is no elegant solution for this at the moment, at least as far as I
know. The problem is that you're sending PostScript to the LaserWriter.
PostScript is essentially a programming language, not just an
encapsulation of whatever text you want to send. If all you're doing is
sending normal text to the LaserWriter then the size of the file being
sent will probably be indicative of the number of pages. However, if
you're sending graphics, such as anything created by a paint program,
you'll find that thirty lines of PostScript can generate thirty pages of
paper. Worse still, I can write fifty lines of PostScript that will tie up
the LaserWriter for twenty minutes as it tries to print it. You may run
into more time problems than number of page problems. If the program
you're using that generates the PostScript follows the conventions,
there's liable to be a page count in the header of the file. If you look
near the top of the file, you may find a line that looks like: %%Pages:
<n> Sounds like you're going to have to write your own filter....

-David C. Kovar
	Technical Consultant			ARPA: kovar@husc4.harvard.edu
	Office of Information Technology	BITNET: corwin@harvarda.bitnet
	Harvard University			MacNET: DKovar
						Ma Bell: 617-495-5947
Technical Details
Message-ID: <8902031642.AA00727@icarus>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request
From: daedalus!corwin@talcott.harvard.edu (-David C. Kovar)
Newsgroups: comp.sys.sun
Subject: Quotas on printing PostScript files
Message-ID: <8902031642.AA00727@icarus>
Date: 9 Feb 89 06:39:54 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 29
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 03 Feb 89 11:42:23 -0500
X-Sun-Spots-Digest: Volume 7, Issue 147, message 3 of 13