ofd-view-react

0.1.32 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ofd-view-react

Weekly Downloads

98

Version

0.1.32

License

none

Unpacked Size

375 kB

Total Files

114

Last publish

Collaborators

  • dltech21