This package has been deprecated

Author message:

this version has been deprecated, use @hhangular/pdfjs

angular-addons

1.0.17 • Public • Published

angular-addons

This project was generated with Angular CLI version 6.0.0.

It's a collection of modules for angular 6x

Modules

  • pdfjs-box2 : pdf viewer

pdfjs-box2

pdfjs-box2 is implementation of pdfjs-box for angular 2x. It contains some components for use easily the mozilla pdf viewer pdfjs.

dependencies

  • pdfjs-dist
  • @types/pdfjs-dist

installation

npm install pdfjs-dist --save
npm install @types/pdfjs-dist --save
npm install angular-addons --save

use

Add assets pdfworker in angular.json

projects.projectname.build.options.assets : [
...
{ "glob": "pdf.worker.js", "input": "./node_modules/pdfjs-dist/build", "output": "/assets" },
...
]

In application module add PdfjsBoxModule and configure worker

@NgModule({
...
imports: [
    BrowserModule,
    PdfjsBoxModule.forRoot({workerSrc: 'assets/pdf.worker.js'})
  ],
...
  bootstrap: [AppComponent]
})
export class AppModule {
}

Components

  • pdf-thumbnails
  • pdf-thumbnail
  • pdf-view

Control

  • pdfControl

Package Sidebar

Install

npm i angular-addons

Weekly Downloads

0

Version

1.0.17

License

MIT

Unpacked Size

2.19 MB

Total Files

95

Last publish

Collaborators

  • hhfrancois