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

ng2-pdfjs-viewer

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pdfjs-viewer - npm Package Compare versions

Comparing version 0.2.23 to 0.2.24

7

index.js

@@ -29,3 +29,2 @@ import { Component, Input, NgModule, ViewChild } from '@angular/core';

this.innerSrc = innerSrc;
this.loadPdf();
},

@@ -42,3 +41,6 @@ enumerable: true,

function () {
this.loadPdf();
if (!this.externalWindow) { // Load pdf for embedded views
// Load pdf for embedded views
this.loadPdf();
}
};

@@ -52,2 +54,3 @@ /**

function () {
// Needs to be invoked for external window or when needs to reload pdf
this.loadPdf();

@@ -54,0 +57,0 @@ };

@@ -32,3 +32,2 @@ (function (global, factory) {

this.innerSrc = innerSrc;
this.loadPdf();
},

@@ -45,3 +44,6 @@ enumerable: true,

function () {
this.loadPdf();
if (!this.externalWindow) { // Load pdf for embedded views
// Load pdf for embedded views
this.loadPdf();
}
};

@@ -55,2 +57,3 @@ /**

function () {
// Needs to be invoked for external window or when needs to reload pdf
this.loadPdf();

@@ -57,0 +60,0 @@ };

{
"name": "ng2-pdfjs-viewer",
"version": "0.2.23",
"version": "0.2.24",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -13,6 +13,6 @@ # Angular 2+ PDFJS viewer with Mozilla's ViewerJS

Open in a new tab/window
### Open in a new tab/window
<img src="/sampledoc/viewerImage.JPG" alt="angular2+ pdfjs viewer in new window"/>
Embed pdf into any angular component/page
### Embed pdf into any angular component/page
<img src="/sampledoc/viewerImageEmbedded.jpg" alt="angular2+ pdfjs viewer embedded"/>

@@ -141,2 +141,3 @@

this.pdfViewer.pdfSrc = res; // pdfSrc can be Blob or Uint8Array
this.pdfViewer.refresh(); // Ask pdf viewer to load/reresh pdf
}

@@ -143,0 +144,0 @@ );

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