[英]How to save HTML div or table data into PDF at desired location using JavaScript or PHP?
如何使用 JavaScript 或 PHP 在所需位置将 HTML div 或表格数据保存为 PDF?
I just Googled the exact title to your question - How to save html div or table data into pdf at desired location using javascript or php
- and this popped right up: Php : create pdf from html using mpdf .我只是在 Google 上搜索了您问题的确切标题- How to save html div or table data into pdf at desired location using javascript or php
-这立即弹出: Php:使用 mpdf 从 html 创建 pdf 。
It tells about mPDF , which is an PHP Library that parses HTML/CSS to generate PDF files.它讲述了mPDF ,这是一个解析 HTML/CSS 以生成 PDF 文件的 PHP 库。 Looks like it's just what you need.看起来这正是你所需要的。
A little research before throwing googlable questions saves everybody's time.在提出可搜索的问题之前进行一点研究可以节省每个人的时间。 Next time, please refer to the help section to learn how to ask a good question.下次请参考帮助部分,学习如何提出好问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.