pdfmake实现js生成pdf文件并下载

代码语言:html

所属分类:其他

代码描述:pdfmake实现js生成pdf文件并下载

代码标签: 生成 pdf 文件 下载

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>my first export PDF</title>
    <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/pdfmake.min.js"></script>
  <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/FZYTKvfs_fonts.js"></script>
    <script>
        function down() {
            var config = {
                content: [
                    '中英文测试',
                    'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines'
                ],
                defaultStyle: {
                    font: '方正姚体'
                }
        .........完整代码请登录后点击上方下载按钮下载查看

网友评论0