When I print pdf document it doesn't stretch to take normal A4 page area. I mean that margins are too big and document is smaller then it could be and is located in center of the page.
My code: PrinterJob job = PrinterJob.getPrinterJob(); Paper paper=new Paper(); paper.setSize(72d*8.267d, 72d*11.692); PDFPrinter pDFPrinter=new PDFPrinter(document,Scaling.SCALE_TO_FIT, Orientation.PORTRAIT,paper); pDFPrinter.silentPrint(job); Please help me to solve this problem. -- Alex Sviridov

