开发者

I need to create a PDF file on the client side using GWT. How do I do that?

This is based on Can anyone tell me that is it possible to generate PDF files using javascript? For me, pdf and/or xls.

Also can I just create a single txt file using GWT because I know JavaScript doesn't have rights to do that clien开发者_开发知识库t-side for security reasons?


GWT is also using javascript on client side and if you want to create PDF on client, you must provide that PDF from server, for example from java-servlet.


You can do as ultor said, call a RPC create a PDF and send it to the browser.

Or you can use JSNI ( http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html ) to call JS native methods, and in this way you can call the methods of jsPDF from your GWT code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜