This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing Postscript

 
Randall Fairman
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need to print some fairly intricate graphics output, and it's been nearly 20 years (ouch) since I last had to program a complex printing routine. Back then I sent PostScript to an Apple LaserWriter, as though it was coming from a terminal (at least that's how I remember it). It turns out that my current project could best be solved in a similar way: a Java program composes PostScript on the fly, which is then sent to the printer. Yes, I'm aware of Graphics2D and what it has to offer, but PostScript is the most efficient way to solve my problem, provided that PostScript printers (or drivers) are so widespread these days that it's a non-issue.

So, that's my question: is it reasonable to assume that all printers in use today will accept PostScript? Put another way, it is reasonable to assume that the following two lines always return a value for the psPrinters array with at least one element?



Thanks,

Randall
 
Ramon Anger
Ranch Hand
Posts: 56
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Randall,

please take a look at http://en.wikipedia.org/wiki/PostScript

There you can read "... Still, some basic, inexpensive laser printers don't support PostScript ..."

Cheers,
Ramon
 
Randall Fairman
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. It seems like nearly every printer these days comes with a driver that will accept postscript, although printers with a built-in PS interpreter are still very expensive. So, it does seem reasonable to assume that I can print by spouting PS (but not BS). The rare person whose printer won't take it is just out of luck.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic