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

ngx-extended-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
636
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-extended-pdf-viewer

When this project is finished (or what passes as "finished" in the IT world), it'll be an embeddable PDF viewer component. It's different from other approaches like ng2-pdf-viewer in that it provides the full suite of UI widgets. In other words, it looks

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88K
decreased by-3.8%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-extended-pdf-viewer

When this project is finished (or what passes as "finished" in the IT world), it'll be an embeddable PDF viewer component. It's different from other approaches like ng2-pdf-viewer in that it provides the full suite of UI widgets. In other words, it looks exactly like the PDF viewer of the browser.

State of the art

Currently, this is only a preliminary version of the library. It works, but it requires some ugly workarounds and it's not really embeddable: The CSS file used by the library affects the entire application.

Please come back in a couple of days, when the problems are - hopefully - solved!

How to use the library

  1. Install the library with npm i ngx-extended-pdf-viewer --save

  2. Open the file "angular.json" (or ".angular-cli.json" if you're using an older version of Angular) and add these two JavaScript files to the "scripts" section:

        "scripts": [
          "node_modules/ngx-extended-pdf-viewer/assets/pdf.js",
          "node_modules/ngx-extended-pdf-viewer/assets/pdf.worker.js"
        ]
    
  3. Add "NgxExtendedPdfViewerModule" to the module file.

  4. Now you can display the PDF file using "".

License and Kudos

The library is based on:

https://github.com/mozilla/pdf.js, which has been published under an Apache V2 license https://github.com/legalthings/pdf.js-viewer, which has also been published unde an Apache V2 license.

Hence the licence of the ngx-extended-pdf-viewer is the Apache V2 license, too.

FAQs

Package last updated on 13 May 2018

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