[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing Postscript Data

From: Stefan Kleine Stegemann
Subject: Re: Printing Postscript Data
Date: Fri, 06 Aug 2004 22:21:24 +0200


Ok, I suppose you could go that route. But everything is based on the printing backend setup now, so that has to be taken into consideration.

Both printer backends handle their jobs with PS, but future ones (win32) will likely not. Something to think about down the road.

I thought about this problem but I don't see any other solution for this
problem. This tightly couples ViewPDF to the GNUstep internals which is
not good.

As far as your situation...it sure would be handy if there was a addition to NSPrinter... That would solve this problem quickly and easily. Of course it would be GNUstep specific but what the heck.
Maybe something like this:

@interface NSPrinter (DirectSpooling)
+(BOOL)        canPrinterNamed: (NSString*) printerName
       directlyPrintFileOfType: (NSString*) type;

+(BOOL) directlyPrintFileAtPath: (NSString*) filePath
                 ofType: (NSString*) type
         toPrinterNamed: (NsString*) printerName;

-(BOOL) directlyPrintFileAtPath: (NsString*) filePath
                   ofType: (NSString*) type

+(BOOL) canDirectlyPrintFileOfType: (NSString*) type;

Or something similar

Wouldn't that be nicer?

This would be great. I think it's not a big problem that these methods
are GNUstep specific. If one want's to be portable, simply don't use them :-)
Would it be possible to add these methods?

greets and thanks very much

reply via email to

[Prev in Thread] Current Thread [Next in Thread]