1. 首页
  2. 数据库
  3. 其它
  4. python将html转成PDF的实现代码(包含中文)

python将html转成PDF的实现代码(包含中文)

上传者: 2020-12-31 17:57:06上传 PDF文件 33.93KB 热度 32次
前提: 安装xhtml2pdf https://pypi.python.org/pypi/xhtml2pdf/下载字体:微软雅黑;给个地址://www.jb51.net/fonts/8481.html 待转换的文件:1.htm复制代码 代码如下:<meta charset=”utf8′′/><style type=’text/css’>@font-face { font-family: “code2000”; src: url(“code2000.ttf”) } html { font-family: code2000; } &
下载地址
用户评论