ArMEd
ArMEd

Reputation: 121

How to get print out a document in Java with customized page size. (SE)

How to get print out a document (Which taken from data base or current fields form the form) in java with customized page size. Mostly important thing is I want to customize the page as my requirements (May be text alignment also needed). am Not a java hard coder. Your helps will me big help to me. Thanks.

Upvotes: 0

Views: 420

Answers (2)

Bob Kuhar
Bob Kuhar

Reputation: 11110

Everywhere I've worked that wanted well formatted output from a Java back-end we've deployed Apache FO (http://xmlgraphics.apache.org/fop/) which allowed us to use XSLT to convert XML to PDF. It works really well, but has a pretty steep learning curve.

Upvotes: 0

mKorbel
mKorbel

Reputation: 109815

not clear what is (Which taken from data base or current fields form the form) , I suggest to go throught the 2D Graphics tutorial, there is detailed described Printing in Java

Upvotes: 1

Related Questions