Socket
Book a DemoInstallSign in
Socket

dm-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dm-pdf-viewer

vue library for viewing pdf files based on pdfJs

1.2.24
latest
npmnpm
Version published
Weekly downloads
10
-23.08%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.