0
Java - PrinterJob
I'm Simply using PrinterJob but it gives the landscape print in portrait orientation, also it crops the overflowing image... too much margins... so how to make all this correct? it should automatically determine the orientation, also do not crop the image... and should give less margin on A4 Sheet...
1 Resposta
+ 9
You need the class PageFormat
You could call the method printDialog of PageFormat which shows a dialog where you can change the properties.
Another option is to use setOrientation(PageFormat.PORTRAIT). And then set this PageFormat to the PrinterJob.