jQuery in Action, 2nd edition*
The moose likes Applets and the fly likes Silent Printing Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Silent Printing Applet" Watch "Silent Printing Applet" New topic

Silent Printing Applet

Jorge Montes

Joined: Mar 03, 2012
Posts: 12

I am using JEE5 and Jasper Reports. There is a report that is exported to pdf. It was working fine but my client want that the report be printed only once and cannot be saved locally. I was doing some research trying to approach this problem, and i saw the Javascript Adobe for pdf documents. So i actually make the pdf be printed without the user interfering (Silent Printing). But i could not make the pdf closes.

So, Adobe Javascript was not totally useful for me. Now i am thinking that an applet will be the answer but I've never done anything like it, in fact, i've never done an applet before. Some partners told me that an applet could be the solution but i do not really know what i am getting into if i try.

Do you thing that an applet is a good idea? what am I getting into? should the applet be signed for that kind of operations?

Thanks in Advance
Jorge Montes

Joined: Mar 03, 2012
Posts: 12

i tried with the applet and all my questions were answered while i was coding it.

It was possible to make a printing job with the applet so i could make the silent printing. I used the java.awt.print package but, of course, the applet was using external devices, so it needs to be signed.

The other problem was getting the PDF file. I could not get the pdf from JSF. So, i made a Servlet that responses the pdf file to the applet.

it was actually kind of easy to make. If you have this problem i recomend you to make an Java Applet

Thank you
I agree. Here's the link: http://aspose.com/file-tools
subject: Silent Printing Applet
Similar Threads
Printing the PDF
Print Directly from JSP
printing from an applet toolbar the image displayed in the applet via a thread
Some class diagrams that should help...I hope
create pdf command line