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 3.2.9 to 3.4.5

43

index.js

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

this.find = true;
this.errorOverride = false;
this.errorAppend = true;
}

@@ -181,2 +183,11 @@ Object.defineProperty(PdfJsViewerComponent.prototype, "pdfSrc", {

}
if (this.errorOverride || this.errorAppend) {
viewerUrl += "&errorMessage=" + this.errorMessage;
if (this.errorOverride) {
viewerUrl += "&errorOverride=" + this.errorOverride;
}
if (this.errorAppend) {
viewerUrl += "&errorAppend=" + this.errorAppend;
}
}
if (this.externalWindow) {

@@ -188,3 +199,30 @@ this.viewerTab.location.href = viewerUrl;

}
console.log("\n pdfSrc = " + this.pdfSrc + "\n fileUrl = " + fileUrl + "\n externalWindow = " + this.externalWindow + "\n downloadFileName = " + this.downloadFileName + "\n viewerFolder = " + this.viewerFolder + "\n openFile = " + this.openFile + "\n download = " + this.download + "\n startDownload = " + this.startDownload + "\n viewBookmark = " + this.viewBookmark + "\n print = " + this.print + "\n startPrint = " + this.startPrint + "\n fullScreen = " + this.fullScreen + "\n find = " + this.find + "\n lastPage = " + this.lastPage + "\n rotatecw = " + this.rotatecw + "\n rotateccw = " + this.rotateccw + "\n cursor = " + this.cursor + "\n scrollMode = " + this.scroll + "\n spread = " + this.spread + "\n page = " + this.page + "\n zoom = " + this.zoom + "\n nameddest = " + this.nameddest + "\n pagemode = " + this.pagemode + "\n ");
// console.log(`
// pdfSrc = ${this.pdfSrc}
// fileUrl = ${fileUrl}
// externalWindow = ${this.externalWindow}
// downloadFileName = ${this.downloadFileName}
// viewerFolder = ${this.viewerFolder}
// openFile = ${this.openFile}
// download = ${this.download}
// startDownload = ${this.startDownload}
// viewBookmark = ${this.viewBookmark}
// print = ${this.print}
// startPrint = ${this.startPrint}
// fullScreen = ${this.fullScreen}
// find = ${this.find}
// lastPage = ${this.lastPage}
// rotatecw = ${this.rotatecw}
// rotateccw = ${this.rotateccw}
// cursor = ${this.cursor}
// scrollMode = ${this.scroll}
// spread = ${this.spread}
// page = ${this.page}
// zoom = ${this.zoom}
// nameddest = ${this.nameddest}
// pagemode = ${this.pagemode}
// pagemode = ${this.errorOverride}
// pagemode = ${this.errorAppend}
// pagemode = ${this.errorMessage}
// `);
};

@@ -221,2 +259,5 @@ PdfJsViewerComponent.decorators = [

spread: [{ type: Input }],
errorOverride: [{ type: Input }],
errorAppend: [{ type: Input }],
errorMessage: [{ type: Input }],
externalWindowOptions: [{ type: Input }],

@@ -223,0 +264,0 @@ pdfSrc: [{ type: Input }]

@@ -26,2 +26,5 @@ import { ElementRef } from '@angular/core';

spread: string;
errorOverride: boolean;
errorAppend: boolean;
errorMessage: string;
externalWindowOptions: string;

@@ -28,0 +31,0 @@ viewerTab: any;

2

ng2-pdfjs-viewer.metadata.json

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"PdfJsViewerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":4}],"declarations":[{"__symbolic":"reference","name":"PdfJsViewerComponent"}],"exports":[{"__symbolic":"reference","name":"PdfJsViewerComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"PdfJsViewerModule"}}}}},"PdfJsViewerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"ng2-pdfjs-viewer","template":"<iframe [hidden]=\"externalWindow || (!externalWindow && !pdfSrc)\" #iframe width=\"100%\" height=\"100%\"></iframe>"}]}],"members":{"iframe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":12,"character":3},"arguments":["iframe"]}]}],"viewerFolder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"externalWindow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"showSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"downloadFileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"openFile":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"download":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"startDownload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"viewBookmark":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"print":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"startPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"fullScreen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"find":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"nameddest":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"pagemode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"lastPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"rotatecw":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"rotateccw":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"cursor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"spread":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"externalWindowOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"pdfSrc":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"ngOnInit":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"loadPdf":[{"__symbolic":"method"}]}}},"origins":{"PdfJsViewerModule":"./index","PdfJsViewerComponent":"./ng2-pdfjs-viewer.component"},"importAs":"ng2-pdfjs-viewer"}
{"__symbolic":"module","version":4,"metadata":{"PdfJsViewerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":4}],"declarations":[{"__symbolic":"reference","name":"PdfJsViewerComponent"}],"exports":[{"__symbolic":"reference","name":"PdfJsViewerComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"PdfJsViewerModule"}}}}},"PdfJsViewerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"ng2-pdfjs-viewer","template":"<iframe [hidden]=\"externalWindow || (!externalWindow && !pdfSrc)\" #iframe width=\"100%\" height=\"100%\"></iframe>"}]}],"members":{"iframe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":12,"character":3},"arguments":["iframe"]}]}],"viewerFolder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"externalWindow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"showSpinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"downloadFileName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"openFile":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"download":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"startDownload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"viewBookmark":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"print":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"startPrint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"fullScreen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"find":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"page":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"nameddest":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"pagemode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"lastPage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"rotatecw":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"rotateccw":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"cursor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"spread":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"errorOverride":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"errorAppend":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"errorMessage":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"externalWindowOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"pdfSrc":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"ngOnInit":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"loadPdf":[{"__symbolic":"method"}]}}},"origins":{"PdfJsViewerModule":"./index","PdfJsViewerComponent":"./ng2-pdfjs-viewer.component"},"importAs":"ng2-pdfjs-viewer"}

@@ -26,2 +26,4 @@ (function (global, factory) {

this.find = true;
this.errorOverride = false;
this.errorAppend = true;
}

@@ -184,2 +186,11 @@ Object.defineProperty(PdfJsViewerComponent.prototype, "pdfSrc", {

}
if (this.errorOverride || this.errorAppend) {
viewerUrl += "&errorMessage=" + this.errorMessage;
if (this.errorOverride) {
viewerUrl += "&errorOverride=" + this.errorOverride;
}
if (this.errorAppend) {
viewerUrl += "&errorAppend=" + this.errorAppend;
}
}
if (this.externalWindow) {

@@ -191,3 +202,30 @@ this.viewerTab.location.href = viewerUrl;

}
console.log("\n pdfSrc = " + this.pdfSrc + "\n fileUrl = " + fileUrl + "\n externalWindow = " + this.externalWindow + "\n downloadFileName = " + this.downloadFileName + "\n viewerFolder = " + this.viewerFolder + "\n openFile = " + this.openFile + "\n download = " + this.download + "\n startDownload = " + this.startDownload + "\n viewBookmark = " + this.viewBookmark + "\n print = " + this.print + "\n startPrint = " + this.startPrint + "\n fullScreen = " + this.fullScreen + "\n find = " + this.find + "\n lastPage = " + this.lastPage + "\n rotatecw = " + this.rotatecw + "\n rotateccw = " + this.rotateccw + "\n cursor = " + this.cursor + "\n scrollMode = " + this.scroll + "\n spread = " + this.spread + "\n page = " + this.page + "\n zoom = " + this.zoom + "\n nameddest = " + this.nameddest + "\n pagemode = " + this.pagemode + "\n ");
// console.log(`
// pdfSrc = ${this.pdfSrc}
// fileUrl = ${fileUrl}
// externalWindow = ${this.externalWindow}
// downloadFileName = ${this.downloadFileName}
// viewerFolder = ${this.viewerFolder}
// openFile = ${this.openFile}
// download = ${this.download}
// startDownload = ${this.startDownload}
// viewBookmark = ${this.viewBookmark}
// print = ${this.print}
// startPrint = ${this.startPrint}
// fullScreen = ${this.fullScreen}
// find = ${this.find}
// lastPage = ${this.lastPage}
// rotatecw = ${this.rotatecw}
// rotateccw = ${this.rotateccw}
// cursor = ${this.cursor}
// scrollMode = ${this.scroll}
// spread = ${this.spread}
// page = ${this.page}
// zoom = ${this.zoom}
// nameddest = ${this.nameddest}
// pagemode = ${this.pagemode}
// pagemode = ${this.errorOverride}
// pagemode = ${this.errorAppend}
// pagemode = ${this.errorMessage}
// `);
};

@@ -224,2 +262,5 @@ PdfJsViewerComponent.decorators = [

spread: [{ type: core.Input }],
errorOverride: [{ type: core.Input }],
errorAppend: [{ type: core.Input }],
errorMessage: [{ type: core.Input }],
externalWindowOptions: [{ type: core.Input }],

@@ -226,0 +267,0 @@ pdfSrc: [{ type: core.Input }]

{
"name": "ng2-pdfjs-viewer",
"version": "3.2.9",
"version": "3.4.5",
"repository": {

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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