Reputation: 11944
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
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
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