I\'m getting this error when I try to print something for a specific label printer in my current college project:
java.awt.print.PrinterException: Paper\'s i
I had the same problem with Dymo 420P.
Try setting imageable area to the same size as paper and origin 0,0. Then after PrinterJob.printDialog()
, call PrinterJob.validatePage()
with your pageformat. It will return valid pageformat with proper imageable area.
i solve it adding
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(OrientationRequested.PORTRAIT);
aset.add(MediaSizeName.INVOICE);
job.print( aset);