ers.adobe.com/asn/developer/pdfs/tn/5003.PPD_Spec_v4.3.pdf" >Postscript Specifications
Usage for creating an printjob on A4 paper with 2.5 cm border:
Paper paper = PageFormatFactory.createPaper (PageSize.A4); PageFormatFactory.setBordersMm (paper, 25, 25, 25, 25); PageFormat format = PageFormatFactory.createPageFormat (paper, PageFormat.PORTRAIT); Defining a pageformat can be an ugly task and full of dependencies. The call to PageFormatFactory.setBorders(...) will setup the paper's border and always assumes that the paper is laid out in Portrait. Changing the PageFormat's orientation does not change the PageFormat's paper object, but it changes the way, how the paper object is interpreted.
@author Thomas Morgner