0.1.28 • Published 5 months ago

pdf-view-react v0.1.28

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

React Pdf View

运行demo

npm run start

打包

npm run build

使用

import PdfViewer from 'pdf-view-react';
import 'pdf-view-react/es/index.css';
import * as mem from 'mpdf.js';

<PdfViewer  file={'https://cmimg.maycur.com/front-static-resource/test/multiple-page.pdf'} mem={mem}  canDownload={true} canPrint={true} canOpen={true} />

配置参数

参数说明类型示例默认值
filepdf文件url[]
memmpdf.js变量object-
wasmUrlwasm资源URLstring-
secretstring
digeststring
canDownload是否可下载booleantrue
canPrint是否可打印(打印合脊那边客户看不懂新打开页的意思)booleantrue
canOpen是否可打开新文档booleanfalse
0.1.28

5 months ago

0.1.15

7 months ago

0.1.16

7 months ago

0.1.17

6 months ago

0.1.18

5 months ago

0.1.10

11 months ago

0.1.11

10 months ago

0.1.12

10 months ago

0.1.13

10 months ago

0.1.14

10 months ago

0.1.0

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.9

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.27

1 year ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago