在ReactJ中向PDF导出报告的最佳方法是什么
我有一个报告应用程序,该应用程序在服务器端上运行reactjs和nodejs。该应用显示报告并包含表,图形,SVG等内容。
我想在单击按钮的情况下以适当的布局将此报告带到PDF。
实现此功能的最佳方法是什么?请针对此问题建议矢量化和非矢量化解决方案。
下图是我的React应用程序,我想将红订单的框导出到结构良好的PDF文件中。
I have a reports app that runs ReactJS on the client-side and NodeJS on the server-side. The app displays a report and contains content like Tables, Graphs, SVGs and more.
I want to export this report to PDF with a proper layout with the click of a button.
What is the best way to achieve this functionality? Please suggest both vectorized and non-vectorized solutions to this problem.
The image below is my React App and I want to export the red-bordered box to a nicely structured PDF file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
这是您可以做到的方式。
谢谢。
You can create a PDF using puppeteer in this package you can access the browser’s print window pragmatically. Using that print window you can export the pdf.
This is the way that you can do it.
Thanks.