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.

Bug 142487 - default print preview includes 4 pages for a small single-page uml diagrams
Summary: default print preview includes 4 pages for a small single-page uml diagrams
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 22:38 UTC by Peter Lam
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
default print preview layout (90.91 KB, image/png)
2008-07-31 22:40 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-07-31 22:38:43 UTC
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.
Comment 1 Peter Lam 2008-07-31 22:40:07 UTC
Created attachment 66228 [details]
default print preview layout
Comment 2 Vladimir Yaroslavskiy 2008-08-01 12:26:49 UTC
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...