@PD4ML wrote:

In order to show the document on client machine, you need to consider a web scenario (to deliver generated document to the machine by HTTP). There are many PD4ML servlet or JSP samples, which do the trick.

Thanks in fact the problem was in java because it render on server meanwhile javascript render on client. A call from Javascript solves the problem.

Thanks for your time