OFF-TOPIC: printing in java
tramuntanal <[email protected]>
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
Hi,
The title of this message is "OFF-TOPIC" because it's not a thing only
related with Gentoo but related to the Linux Java implementation.
The question is has anybody get success in printing in java+linux?
I use CUPS and it works when printing pdfs, text and
OpenOffice.orgdocuments. But when I try something like this:
if (pJob.printDialog()) {
pJob.setPrintable(printableDocument, new PageFormat());
try {
pJob.print();
} catch (PrinterException printerException) {
System.out.println("Error Printing Document");
}
}
the print dialog appears I select the correct printer and it seems that
everitying works but when the document enters into the queue it's in the
state printing and then automatically it changes to stoped. At no moment the
printer really receives the document.
Can somebody give me a hint about this!
Thanks in advance!