Suraj
Suraj

Reputation: 437

Java text printing framework

Is there any Java framework which helps to print text in specified co-ordinates(x,y)?

Upvotes: 2

Views: 1681

Answers (2)

user177800
user177800

Reputation:

For the ultimate in printing control, look at using iText and generating a PDF, that you can control the exact layout and positioning things and then print out the resulting PDF.

Upvotes: 1

Behrang Saeedzadeh
Behrang Saeedzadeh

Reputation: 47913

You can use the Java Report Printing library to achieve this. Have a look at TextPrint, Insets, and InsetsPrint classes for more information.

For a lower level API have a look at the Java Print Service API.

Upvotes: 2

Related Questions