This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Even though the UML diagram is very small, selecting File->Print brings up the print preview window that shows 4 pages by default. See attached screenshot.
Created attachment 66228 [details] default print preview layout
The problem is not in print/preview. The printable component has too big dimension while real image is less. It leads to the extra pages. To fix this issue, the component should indicates real size via "print.size" property. See example: putClientProperty("print.printable", Boolean.TRUE); // NOI18N putClientProperty("print.size", new java.awt.Dimension(width, height)); // NOI18N where width x height is real size. Reassign to the UML team...