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

后端 未结 5 843
一个人的身影
一个人的身影 2020-12-02 20:36

I\'ve been trying for some time to determine a way to use the standard Java Print library to print files - specifically, PDF documents - with certai

5条回答
  •  囚心锁ツ
    2020-12-02 21:25

    We had similar requirement to print PDF's and wanted to send some pages to Specific tray and also wanted the document to be stapled. We used Java code + ghost script combination First convert PDF to ghost script and then add PJL (Print job language) commands to ghost script file to select trays and staple the documents. Then send that edited ghost script file to printer.

    Here is complete example written in Java

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

    -Ram

提交回复
热议问题