ng2-pdfjs-viewer
Advanced tools
Comparing version 0.2.23 to 0.2.24
@@ -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 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8904298
73975
205