The recommendation is to go with PrinterJob (2D) printing in order to
get
a) 2D graphics printing
b) better graphics and text rendering
c) Access to many new APIs in the next release
d) Access to headless (server) printing in the next release

PrintJob (aka 1.1 printing) did add APIs into 1.3 to do some of the things
you cite. But no further enhancements are expected to be made to AWT printing.
It will be supported in its current form of course.

1.4 (merlin) will add functionality equivalent to all of those APIs
and a lot more to PrinterJob printing.
I strongly recommend checking out the (now somewhat dated) :

http://java.sun.com/aboutJava/communityprocess/review/jsr006/index.html

to get a flavour of what will be possible.

Also we'll be talking about this at JavaOne in June (session 595) and how
it integrates with PrinterJob.

Actually some of the things you mention are already possible to some
degree although somewhat non-obviously with 2D printing.

By specifying the dimensions of the page, 2D printing automatically
selects the appropriate paper size, and if you ask for a defaultPage() from
a PrinterJob you will get back a paper size corresponding to the default
paper size configured for that printer.

Greyscale can be simulated if need be by selecting grey colours for
rendering.

BTW I recommend 1.3.1 over 1.3 - a few bugs that were fixed there will help
in some cases.

-phil.

> X-Accept-Language: en
> Date: Wed, 25 Apr 2001 12:34:43 -0400
> From: Himabindu Kosuru <[EMAIL PROTECTED]>
> Subject: [JAVA2D] AWT printing vs 2D printing
> Comments: cc: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
>
> Hi,
>
> I am going to use JDK 1.3. I am confused if I should use AWT printing or
>
> 2D printing. Could some one point to me a document which discusses the
> advantages of using one over the other. In AWT printing, you can specify
>
> PrintQuality, colorType, media type etc. If I go with 2D printing, can I
>
> set these options?
>
> Thank you,
> Bindu
>
>

===========================================================================
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