ofd-view-react
v0.1.34
Published
运行demo ```angular2html npm run start ```
Downloads
28
Readme
React Ofd View
运行demo
npm run start
打包
npm run build
使用
import OfdViewer from 'pdf-view-react';
import 'ofd-view-react/es/index.css';
import * as mem from 'parser_x_min.js';
<OfdViewer file={'https://cmimg.maycur.com/front-static-resource/test/ofd2.ofd'} mem={mem} canDownload={true} canPrint={true} canOpen={true} downloadUrl=''/>
配置参数
| 参数 | 说明 | 类型 | 示例 | 默认值 | | --- | --- | --- | --- | --- | | file | pdf文件 | url | | [] | | mem | parser_x_min.js变量 | object | | - | | wasmUrl | wasm资源URL | string | | - | | downloadUrl | 下载地址 | string | | - | | secret | | string | | | | digest | | string | | | | canDownload | 是否可下载 | boolean | | true | | canPrint | 是否可打印(打印合脊那边客户看不懂新打开页的意思) | boolean | | true | | canOpen | 是否可打开新文档 | boolean | | false |