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 159035 - Prints so small and centered in the page
Summary: Prints so small and centered in the page
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-24 09:48 UTC by jonathanvilalopez
Modified: 2009-05-25 21:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jonathanvilalopez 2009-02-24 09:48:49 UTC
I'm trying to print an XSD schema, the design view, but NetBeans prints it bad... so little in the middle of the page,
and it crops the image so it cuts some text....
Comment 1 jonathanvilalopez 2009-04-30 12:16:20 UTC
How is this issue going ? 

It's really annoying not to have the feature to print ANYTHING ..... 

Is a problem of my system ? I'm using Linux Ubuntu 8.10, NetBeans 6.5 or 6.7, Gnome....and ALL what I try to print is
printing bad ( so little in the middle of the page ). I've tried the same in a Windows XP and it works fine. Also I've
tried to print in my system with other apps and it works fine.....so it seems the problem is NetBeans with Linux and
Gnome......
Comment 2 Sergey Lunegov 2009-04-30 13:12:15 UTC
Vladimir, please look at this in context whether it's defect or feature.
Comment 3 Vladimir Yaroslavskiy 2009-04-30 14:14:54 UTC
Please provide the version of JDK, detailed steps to reproduce.
If you print to pdf, please attach this pdf.
If you print a source or BPEL diagram, is it ok?

Looks like the problem is in JDK.

The print module in NetBeans uses standard JDK API to call
*system* print dialog which sends data to a printer.

Client of JDK (print module in NetBeans) does not know anything
about printers settings, OS, etc. If print results are fine in
other OS (I don't see problem under Windows, Solaris), the problem
in the printing implementation in JDK for Ubuntu.

This problem can't be fixed from NetBeans side, so closing as WONTFIX.
Comment 4 jonathanvilalopez 2009-04-30 16:19:30 UTC
I'm using JDK 1.6.0.13 and when NB prints to a file it prints quite right, but printing to the printer it prints so
small in the center of the page.

Have you tried with my same platform ? ( Linux Ubuntu 8.10, Gnome, JDK 1.6.0.13, network printer ). If all other apps
prints well in my system, why NB does not ?

Is there any way to test if the issue comes from NB or not ?
Comment 5 Vladimir Yaroslavskiy 2009-05-01 23:12:52 UTC
As I wrote NetBeans (print module) doesn't do any specific actions
for printing to network printer or under Linux (or another OS).
Prepared data are sent to "printer" via JDK API and NetBeans
doesn't know is it real printer or file or something else.
Print module takes the picture from the view as is, no
modifications.

It is impossible to do any fix from NetBeans side.
If printing works incorrectly in all cases and under
all OS, I agree it will be a bug in print module,
but in this case it is a bug in JDK/printer drivers.

What is the result of printing of sources or BPEL
diagram?

I have to close this issue against NetBeans printing,
I don't see the root in the printing module.
Comment 6 jonathanvilalopez 2009-05-04 16:31:04 UTC
SOLVED :

I have changed my printer driver from the Postcrip one to HP LaserJet M3027 MFP - CUPS+Gutenprint v5.2.0-rc1 and now it
prints well.........and not only Netbeans but all the other java applications.

Thanks a lot to all.