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

ng2-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-pdf-viewer - npm Package Compare versions

Comparing version 7.0.2 to 8.0.0

esm2020/ng2-pdf-viewer.mjs

1

ng2-pdf-viewer.d.ts
/**
* Generated bundle index. Do not edit.
*/
/// <amd-module name="ng2-pdf-viewer" />
export * from './public_api';

29

package.json
{
"name": "ng2-pdf-viewer",
"version": "7.0.2",
"version": "8.0.0",
"description": "Angular 5+ component for rendering PDF",

@@ -28,3 +28,3 @@ "license": "MIT",

"pdfjs-dist": "~2.11.338",
"tslib": "^2.0.0"
"tslib": "^2.3.1"
},

@@ -34,11 +34,22 @@ "peerDependencies": {

},
"$schema": "./node_modules/ng-packagr/package.schema.json",
"main": "bundles/ng2-pdf-viewer.umd.js",
"module": "fesm2015/ng2-pdf-viewer.js",
"es2015": "fesm2015/ng2-pdf-viewer.js",
"esm2015": "esm2015/ng2-pdf-viewer.js",
"fesm2015": "fesm2015/ng2-pdf-viewer.js",
"module": "fesm2015/ng2-pdf-viewer.mjs",
"es2020": "fesm2020/ng2-pdf-viewer.mjs",
"esm2020": "esm2020/ng2-pdf-viewer.mjs",
"fesm2020": "fesm2020/ng2-pdf-viewer.mjs",
"fesm2015": "fesm2015/ng2-pdf-viewer.mjs",
"typings": "ng2-pdf-viewer.d.ts",
"metadata": "ng2-pdf-viewer.metadata.json",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./ng2-pdf-viewer.d.ts",
"esm2020": "./esm2020/ng2-pdf-viewer.mjs",
"es2020": "./fesm2020/ng2-pdf-viewer.mjs",
"es2015": "./fesm2015/ng2-pdf-viewer.mjs",
"node": "./fesm2015/ng2-pdf-viewer.mjs",
"default": "./fesm2020/ng2-pdf-viewer.mjs"
}
},
"sideEffects": false
}

@@ -9,8 +9,2 @@ <h1 align="center">Angular PDF Viewer</h1>

</a>
<a href="https://david-dm.org/vadimdez/ng2-pdf-viewer" title="dependencies status">
<img src="https://david-dm.org/vadimdez/ng2-pdf-viewer/status.svg"/>
</a>
<a href="https://travis-ci.org/VadimDez/ng2-pdf-viewer" title="test">
<img src="https://travis-ci.org/VadimDez/ng2-pdf-viewer.svg?branch=master"/>
</a>
<a href="https://gitter.im/ngx-pdf-viewer/Lobby" title="Gitter">

@@ -50,8 +44,18 @@ <img src="https://img.shields.io/gitter/room/nwjs/nw.js.svg" alt="Gitter"/>

### Angular >= 12
```
npm install ng2-pdf-viewer --save
npm install ng2-pdf-viewer
```
> Partial Ivy compilated library bundles.
*Note: For angular 4 or less use version `3.0.8`*
### Angular >= 4
```
npm install ng2-pdf-viewer@^7.0.0
```
### Angular < 4
```
npm install ng2-pdf-viewer@~3.0.8
```
## Usage

@@ -92,3 +96,3 @@

[original-size]="false"
style="style="width: 400px; height: 500px"
style="width: 400px; height: 500px"
></pdf-viewer>

@@ -95,0 +99,0 @@ `

@@ -6,2 +6,3 @@ /**

import type { PDFSource, PDFProgressData } from './typings';
import * as i0 from "@angular/core";
export declare enum RenderTextMode {

@@ -95,2 +96,4 @@ DISABLED = 0,

private setupResizeListener;
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "pdf-viewer", never, { "src": "src"; "cMapsUrl": "c-maps-url"; "page": "page"; "renderText": "render-text"; "renderTextMode": "render-text-mode"; "originalSize": "original-size"; "showAll": "show-all"; "stickToPage": "stick-to-page"; "zoom": "zoom"; "zoomScale": "zoom-scale"; "rotation": "rotation"; "externalLinkTarget": "external-link-target"; "autoresize": "autoresize"; "fitToPage": "fit-to-page"; "showBorders": "show-borders"; }, { "afterLoadComplete": "after-load-complete"; "pageRendered": "page-rendered"; "pageInitialized": "pages-initialized"; "textLayerRendered": "text-layer-rendered"; "onError": "error"; "onProgress": "on-progress"; "pageChange": "pageChange"; }, never, never>;
}

@@ -0,3 +1,8 @@

import * as i0 from "@angular/core";
import * as i1 from "./pdf-viewer.component";
export * from './typings';
export declare class PdfViewerModule {
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<PdfViewerModule, [typeof i1.PdfViewerComponent], never, [typeof i1.PdfViewerComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<PdfViewerModule>;
}
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