开发者

My printer does not support postscript?

开发者 https://www.devze.com 2023-03-02 00:59 出处:网络
DocFlavor of my printer returned image/gif image/gif image/gif image/jpeg image/jpeg image/jpeg image/png image/png

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/oct开发者_开发问答et-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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消