Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lmtri/react-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lmtri/react-pdf-viewer

A React component to view a PDF document, very easy to use. It's written in TypeScript, and powered by React hooks completely.

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
170
decreased by-28.27%
Maintainers
1
Weekly downloads
 
Created
Source

React PDF by lmtri

A React component to view a PDF document, very easy to use. It's written in TypeScript, and powered by React hooks completely.

// Import
import PdfViewer from "@lmtri/react-pdf"

// Usage
<PdfViewer
    // src: string | Blob
    src={"https://pdfobject.com/pdf/sample.pdf"}
    fileName='sample.pdf'
/>

Features

Basic features

  • Zooming: Support custom levels such as actual size, page fit, and page width
  • Navigation between pages
  • Can go to the first and last pages quickly
  • View and navigate the table of contents
  • Text selection
  • Different scrolling modes
  • Fullscreen supported
  • Download file
  • Support SSR
  • Print
  • Accessibility

Customization

  • The toolbar can be customized easily

License

The MIT License.

☕︎ You can give me a cup of coffee here🤗.

About

This project is developed by Lieu Minh Tri.

Keywords

FAQs

Package last updated on 05 Mar 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc