代码拉取完成,页面将自动刷新
目前方案采用:svg及canvas渲染实现,百分百纯前端渲染
效果:
小程序OFD验签示例
微信
npm i ofd.js
parseOfdDocument({
ofd: ofdFile,
success() {
},
fail(error){
console.log(error)
}
})
此方法需要在parseOfdDocument success回调后使用
参数 | 说明 | 是否必填 |
---|---|---|
documentIndex | ofd文档中document的索引,默认从0开始 | 是 |
width | 预期渲染的宽度,像素值 ,如800 | 否 |
const divs = renderOfd(documentIndex, width)
// do something
此方法需要在parseOfdDocument success回调后使用
参数 | 说明 | 是否必填 |
---|---|---|
documentIndex | ofd文档中document的索引,默认从0开始 | 是 |
pageIndex | ofd文档中页码,默认从0开始 | 是 |
width | 预期渲染的宽度,像素值 ,如800 | 否 |
const div = renderOfdByIndex(documentIndex, pageIndex, width)
// do something
发挥人人为我,我为人人的优良传统,多做pr~~~
npm install
npm run serve
npm run build
npm run lint
项目获得 Star曲线
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。