sencha touch pdf生成表单客户端

问题描述:

我们正致力于使用sencha触摸框架工作创建移动应用程序。我们的一个要求是当用户点击视图pdf时,用户输入的表单详细信息应该呈现本地存储的json格式并以pdf格式查看,并且可以在本地保存为pdf。
我发现itext是广泛用于pdf生成的java库之一。但我找不到任何关于sencha touch和itext的文章。让我知道的是,一个可能的方式或可用于JSON来生成PDF在煎茶触摸的任何其它方法。

We are working on creating mobile app using sencha touch frame work. one of our requirements is when user hits view pdf, the user entered form details which stored locally has json format should be rendered and view as pdf and also it can be saved as a pdf locally. i found that itext is one of the java library which is widely used for pdf generation. but i couldn't find any article inter relating both sencha touch and itext. let me know is that a possible way or any other method available for json to pdf generation in sencha touch.

此致

java与javascript无关。

java has nothing to do with javascript.

快速谷歌搜索javascript pdf generation列出了一些可能有效的库但让它们在设备上运行可能比其提交的价值更麻烦表单结果发送到服务器并下载生成的PDF。

A quick Google search of "javascript pdf generation" lists some libraries that may work but getting them to run on a device might be more trouble than its worth id look at submitting the form results to a server and downloading the resultant PDF.

这可能会指向正确的方向:
generate-pdf-files-with-javascript

this might point you in the right direction: generating-pdf-files-with-javascript