1.2.24 • Published 1 year ago

dm-pdf-viewer v1.2.24

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Pinch zoom for Vue

vue library for viewing pdf files based on pdfJs

Installation

Install the npm package.

npm i dm-pdf-viewer

Import module:

import DmPdfViewer from 'dm-pdf-viewer';

Vue.component('dm-pdf-viewer', DmPdfViewer);

Usage

Pass the url to the component and it will render the pdf

<dm-pdf-viewer name="document" url="./doc.pdf" />

Properties

nametypedefaultdescription
namestring''Document title.
urlstring''Document url
zoombooleantrueZoom buttons
printbooleantruePrint button
downloadbooleantrueDownload button
fullscreenbooleantruefullscreen button
backgroundColorstring'#fff'The background color of the container.
toolbarItemColorstring'#5956e0'The color of toolbar items
selectiveDownloadbooleanfalseSelective download
filePathstring''Path to file
downloadOrigTitlestring'Download'Title for 'download' button
downloadPdfTitlestring'Download as PDF'Title for 'download as PDF' button
1.2.23

1 year ago

1.2.24

1 year ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.18

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.15

2 years ago

1.1.15

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago