【文件属性】:
文件名称:NodePDF:使用PhantomJS在Node.js中进行肮脏的PDF渲染
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-13 23:04:38
JavaScript
节点PDF
在Node.js中进行肮脏的PDF渲染
安装
npm install nodepdf
依存关系
幻影
构造器API
您可以使用NodePDF的两种方式,一种是使用返回EventEmitter实例的EventEmitter 。
var NodePDF = require ( 'nodepdf' ) ;
// last argument is optional, sets the width and height for the viewport to render the pdf from. (see additional options)
var pdf = new NodePDF ( 'http://www.google.com' , 'google.pdf' , {
'viewportSize' : {
'width' : 1440 ,
'height' :
【文件预览】:
NodePDF-master
----.travis.yml(67B)
----index.js(3KB)
----package.json(702B)
----tests()
--------pdf.js(3KB)
----child.js(1KB)
----render.js(2KB)
----.gitignore(81B)
----README.md(5KB)