1.4 (now in beta) ha a new package : javax.print which allows you to
specify or retrieve a PrintService object representing the printer.

It also supports the concept of DocFlavor's - types of data that can
be sent to that printer.

If the PrintService reports it can print postscript then that's a fairly
strong indicator that its a Postscript capable printer.

One case in which its not necessarily true is on Linux where users
typically connect some kind of ink jet printer but the O/S
uses Ghostscript as a filter to covert postscript to the appropriate
printer language.

To the application (including a Java app) this is not visible - it
still appears as a PS printer which to most intents and purposes it is.
This is only something that you need care about if you absolutely require
that the PS interpreter be in the device, which seems unlikely.

-phil.

> Date: Mon, 25 Jun 2001 10:07:15 -0400
> From: Karen Johnson <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Postscript Printers
> To: [EMAIL PROTECTED]
>
> Hello,
>
> Is there a way to determine if the user has selected a Postscript printer?
> (Other than asking them).  I am trying to implement an optimization for
> Postscript printers, but it slows down printing time for non-Postscript
> printers.
>
> Thanks.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to