Harinder
Harinder

Reputation: 11944

My printer does not support postscript?

DocFlavor of my printer returned

image/gif
image/gif
image/gif
image/jpeg
image/jpeg
image/jpeg
image/png
image/png
image/png
application/x-java-jvm-local-objectref
application/x-java-jvm-local-objectref
application/octet-stream
application/octet-stream
application/octet-stream

Does this mean that my printer doesnot support postscript?

so what should i use here

DocFlavor psInFormat = DocFlavor.INPUT_STREAM.POSTSCRIPT;

for printing any kind of document and providing specifications also

Upvotes: 0

Views: 511

Answers (2)

Piyush Mattoo
Piyush Mattoo

Reputation: 16115

There is no Postscript support as revealed by your doc flavor supported formats. Possible options are to convert your document to an image or render it in an HTML editor like Jeditor Pane before printing.

Upvotes: 1

John C
John C

Reputation: 1835

You are right that your printer doesn't support Postscript which also mean that you cannot use POSTSCRIPT Docflavor. You can see if you can find a library like Apache FOP to convert your document to postscript.

Upvotes: 1

Related Questions