Printing Bug

Benjamin Mesing bensmail at gmx.net
Tue Dec 20 19:29:35 UTC 2011


Hi,

I have a bug report against UMLet [1] which states that printing to a
shared SMB printer using CUPS with authentication-requirement does not
work. I had the reporter test printing with "freemind" too, where he has
the same problem.

A superficial web search does not reveal a solution for this problem and
I am not so much into the Java-Printing stuff that I can do a lot here.

Since UMLet uses standard java mechanism for printing I suspect it is
not really an UMLet bug, but one within Java (he uses OpenJDK 6):

		import java.awt.print.PrinterJob;

		[...]

		PrinterJob printJob = PrinterJob.getPrinterJob();
		printJob.setPrintable(this.getDrawPanel());
		if (printJob.printDialog()) try {
			printJob.print();
		} catch (PrinterException pe) {
			Main.displayError(Constants.ERROR_PRINTING);
		}

Any help would be appreciated.

Best regards

Ben

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651533




More information about the pkg-java-maintainers mailing list