printing to a networked printer using java

前端 未结 3 399
有刺的猬
有刺的猬 2021-01-07 13:01

i require to send a pdf document to print on the server side of a web app, the printer fully supports pdf printing etc, it is networked as well to the server. The pdf is als

3条回答
  •  暖寄归人
    2021-01-07 13:36

    Take a look at this blog. We had to print documents with duplex print option. Its not possible to duplex print directly in java. However the work around is to use ghostscript and convert PDF to PS (Post script file). To that you can add either PJL Commands or Post script commands.

    More info at

    http://reddymails.blogspot.com/2014/07/how-to-print-documents-using-java-how.html

    Also read similar question

    Printing with Attributes(Tray Control, Duplex, etc...) using javax.print library

提交回复
热议问题