This entry applies to all our libraries and components that can print PDF documents: jPDFPrint, jPDFProcess, jPDFViewer, jPDFNotes, jPDFEditor.

Q: We have an issue when sending PDF documents to the printer using jPDFrint on a Windows Server. Every now then we do get either one of the following error message:  “Printer is not accepting job”.

java.awt.print.PrinterException: Printer is not accepting job.
at sun.print.RasterPrinterJob.print(
at sun.print.RasterPrinterJob.print(
at com.qoppa.pdfViewer.e.i.print(Unknown Source)

Sometimes restarting the job fixes it and at times we would have to restart the server. Just wondering if you have been reported about these issues before and have a fix/workaround for this.

A: We have had a few reports of this issue.

It seems that this issue was happening  when the related printer became unavailable for any of the following reason:

  • status error
  • status no toner
  • status out of memory
  • status off line
  • status user intervention
  • status door open
  • status not available

A Java application could no longer send printing jobs to the Windows printer spooler to be queued (as expected) and the application would receive the error above.

The issue was resolved in Java 9 and back-ported to the following java versions / builds:

Issue Fix Version Resolved In Build
JDK-8050839 8u40 b04
JDK-8050840 7u80 b03
JDK-8050841 6u91 b01
JDK-8063791 8u45 b01
JDK-8070245 emb-8u47 team
JDK-8072251 7u85 b01
JDK-8084991 emb-9 team