简体   繁体   English

使用rails和ember.js创建PDF

[英]PDF creation with rails and ember.js

I've been researching the best way to generate a feature rich, well-designed PDF based on the analytics platform we provide to our current clients. 我一直在研究基于我们为现有客户提供的分析平台生成功能丰富,设计良好的PDF的最佳方法。 Our stack is ember.js, ember-data, and ruby on rails. 我们的堆栈是ember.js,ember-data和ruby on rails。 We use D3.js and rickshaw to provide advanced graphing and insight, and would like to incorporate this into our pdf generation as much as possible. 我们使用D3.js和人力车来提供高级图形和洞察力,并希望尽可能将其融入我们的pdf生成中。 After initial research, it seems like prawn has been the most highly recommended, but seems far too basic for our design purposes. 经过初步研究,看起来大虾是最受推荐的,但对我们的设计来说似乎太基础了。 Does anyone have any recommendations for something that could help here? 有没有人对这里有帮助的东西有任何建议?

I would use the addin ember-js-pdf. 我会使用addin ember-js-pdf。 Download the data from the server and use to define the nessary elements/steps of the pdf and then create the PDF using the addin. 从服务器下载数据并用于定义pdf的必要元素/步骤,然后使用插件创建PDF。

Have a look at https://emberobserver.com/addons/ember-js-pdf for the details. 有关详细信息, 查看https://emberobserver.com/addons/ember-js-pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM