Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the causes of large spool files from java.awt.print.PrinterJob and how can I avoid them?

avoid causes files large spool
0
Posted

What are the causes of large spool files from java.awt.print.PrinterJob and how can I avoid them?

0

This was much more of a problem in earlier releases but as of J2SE 5.0 most applications should not see a problem. Some of it is platform specific and in general things are better on Windows than Solaris and Linux. Printing using non opaque colours, gradient paints, and custom paints can cause individual pages (not the whole print job) to be generated as a raster at device resolution. This can be mitigated in a few ways: • the application printing code could avoid using these. • the application could render a selected area which uses these to an offscreen opaque BufferedImage and then draw that BufferedImage to the printer graphics. • the application could lower the device resolution of the print job which may be higher than needed, using the PrinterResolution attribute. Printing Text on Solaris with non-Postscript standard fonts.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123