doesn't print corectly on A4 paper size

Bug #601871 reported by Tomislav Parčina
70
This bug affects 15 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I try to print from Java I get new Print window. Under page setup Media Size (paper size) is B7 (ISO/DIN). When I change to A4 (ISO/DIN & JIS) it seams that it has changed. But when I send document to print it prints just on small part of A4 paper and the text is printed over itself.

Same document printed form Windows machine is printed all right, so the document should be all right.

If I send to print to PDF (instead to printer) I get the same thing.

I assume that the problem is with defining the page size in Java print window.

Bud is reproducible. If you need any more informations, please ask.

Best regards.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: sun-java6-bin 6.20dlj-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Mon Jul 5 13:27:25 2010
ExecutablePath: /usr/lib/jvm/java-6-sun-1.6.0.20/jre/bin/java
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 SHELL=/bin/bash
 LANG=hr_HR.UTF-8
SourcePackage: sun-java6

Revision history for this message
Tomislav Parčina (tomo-sok) wrote :
Revision history for this message
Tomislav Parčina (tomo-sok) wrote :

As far as I understand this is problem in sun-java6-plugin package.

Revision history for this message
Sean Clarke (sean-clarke) wrote :

Still present in 11.04, 11.10 and 12.04 (development) - also, changing to Oracle Java 7 has no effect.

I can't ascertain if we are looking at a Java bug or a Java->Gnome bug. i suspect the latter, as on other systems where i have different printers installed I see correct default page size selection, so at an educated guess I would lean towards the interaction between the Java and Gnome printing.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sun-java6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Leila - Qoppa (lrhaouti) wrote :

Dear Launchpad Janitors

We're the producer of PDF Studio, a pdf editor developed in Java, which among other platforms can run under Linux / Ubuntu.

We've had MANY reports from European customers reporting a similar issue to the one mentioned above.

Our European Ubuntu users can not print documents from our application on a different paper format than the default paper size set on their printer. This is an issue for researchers and professors printing articles or anyone having to exchange documents with the US.

This bug seems important enough that it should be prioritized and assigned.

At least, could you please provide a workaround?

Revision history for this message
James Shriner (hedon-james) wrote :

I found a workaround for a similar bug on my Ubuntu 10.04.4 desktop.

When sending a document to my default printer, I could not change ANY settings in the print dialogue, including paper size, number of pages, etc... However, printing to a non-default printer opened up the dialog choices to allow change.

My workaround was to create a third printer, which I called Qoppa printer, with IDENTICAL settings that I cloned from my default printer. My printer list now consists of Dell-3110cn (a laserjet), Epson Workforce (an AIO inkjet), and Qoppa Printer (cloned laserjet settings).

Instead of printing to default Dell-3110cn, I print to Qoppa Printer; I can change printer sizes, number of pages selected, etc... and it prints out to the default laserjet printer. VOILA!!!!

If it helps in troubleshooting, this workaround seems to suggest the bug resides within the "default printer" settings and the java interaction with the default printer.

Revision history for this message
Tom Ellis (tellis) wrote :

I also hit this, java would print to media type: letter by default and doesn't seem to respect the default media type, in my case A4.

I was already using a custom PPD file, so modified it and re-ordered A4 so that it was the first entry each time and it works around the problem.

Revision history for this message
Matt Malosh (matt-w) wrote :

I also had this problem, Java using the first size entry in the PPD rather than the defualt or any dialog selected size.

Worked around it using the advice above of modifying the PPD.

Revision history for this message
Diego Vela (drebs-999) wrote :

My system (Kubuntu) is affected to

Revision history for this message
Diego Vela (drebs-999) wrote :

... with Java 7

Revision history for this message
Diego Vela (drebs-999) wrote :

it affects also openjdk-7-jre for amd64

Revision history for this message
Amos Kittelson (amosk) wrote :

I have same issue with Ubuntu 12.10 using PDF Studio Pro v8.3.2
$ uname -a
Linux Z77N 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Revision history for this message
Sean Clarke (sean-clarke) wrote :

Problem also present when using Java 8.

My users report this is their number 1 annoyance with our Java applications.

Revision history for this message
Michael Convey (smconvey) wrote :

This is still a problem. Please fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.