http://it-develops.blogspot.com/2007/08/java-printer-vs-customize-paper-size.html
Wednesday, August 1, 2007
JAVA Printer vs Customize Paper Size
How to printing in my paper size?
If you want to print to your custom paper size, you can custom in your java code(Paper Class or findMediaSize() method), but if the custom size does not in the standard paper sizes, Printer API will select the nearly paper size from standard sets(height must more than width forever).
According above, it can't completely when your paper isn't in standard size sets. You can do this to add your paper size to standard sets
in this case my OS is Windows XP
goto -> Printers and Faxes -> File -> Server Properties (in this dialog you can add your paper)
After you do that, the Printer API will see your paper in standard sets but paper height must more than width forever.
Posted by RoSippA at 3:43 PM