Package Exports
- bestofdview
- bestofdview/src/packages/index.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bestofdview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
BestOfdview
ofd 查看器
介绍
BestOfdview 是一款开源的 ofd 查看器,主要功能有:
- 支持 ofd 文件格式的解析,包括解析出 ofd 文档的基本信息、解析出 ofd 文档中的文字、表格、签名等内容。
- 支持 ofd 文件格式的渲染,包括将 ofd 文档中的文字、表格、签名等内容渲染成可视化的页面。
- 支持 ofd 文件格式的签名验证,包括对 ofd 文档的签名进行验证,验证签名是否正确。
下载
安装
npm i bestofdview安装依赖
npm i jszip-utils jszip @lapo/asn1js sm-crypto ofd-xml-parser js-md5 js-sha1 jsrsasign core-js web-streams-polyfill使用
创建 OfdView.vue 文件,并引入组件:
<template>
<div class="ofd-view-container">
<OfdView></OfdView>
</div>
</template>
<script setup lang="ts">
import { OfdView } from 'bestofdview'
import 'bestofdview/src/assets/main.css'
import 'bestofdview/src/polyfills'
import 'sm-crypto'
import 'jsrsasign'
import 'ofd-xml-parser'
import 'jszip'
import 'jszip-utils'
</script>
<style scoped>
.ofd-view-container {
width: 100%;
height: 100vh;
}
</style>贡献
欢迎提交 PR,共建开源 ofd 查看器。