html - Ajaxian HTML 到 PDF 打印控件

标签 html ajax pdf

是否有用于将 HTML 页面转换为 PDF 的 AJAX 控件?

我想添加一个“打印友好”链接,该链接创建当前页面的 PDF 文件。

最佳答案

您可能想尝试这项免费服务 web2pdfconvert ,它依赖于 this service

链接运行在 ajax 上以 PDF 格式返回当前页面,并且在布局和呈现方面非常准确。

这是为 super 懒惰嵌入的脚本:)

<script type="text/javascript">
var pdfbuttonlabel="Save page as PDF"
</script>

<script src="http://www.web2pdfconvert.com/pdfbutton.js" type="text/javascript">
</script>

关于html - Ajaxian HTML 到 PDF 打印控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1125922/

相关文章:

html - 使用iText从html内容到pdf的阿拉伯字符

php - 使用 TCPDF 创建 PDF 在第 16928 行显示未定义索引 : cols in tcpdf/tcpdf. php

html - CSS/HTML : How do I change the color of the check mark within the checkbox input?

javascript - 如何将 JsonResponse 与 ajax 结合使用

html - CSS 相对定位的奇怪问题

javascript - Ajax 按钮向下滑动并附加带有淡入效果的数据

php - 在 Woocommerce 结帐页面中使用 AJAX 和 Fee API 进行动态折扣

python - 使用 plotly python 导出 pdf

html - 定位按钮和 Logo 等距

javascript - Angularjs 单击会触发 2 次?