2.0.39 • Published 5 years ago

@hhangular/pdfjs v2.0.39

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

@hhangular/pdfjs Build Status

Full documentation available here : hhangular/pdfjs

This library was generated with Angular CLI version 8.0.0.

You can read how here

This library contains an angular module PdfjsModule that contains a collection of components.

Components of PdfjsModule are implementation of mozilla pdfjs for angular 8x.

It contains some components for use easily the mozilla pdf viewer pdfjs.

dependencies

  • pdfjs-dist
  • @types/pdfjs-dist

Installation

npm install @hhangular/pdfjs --save

Configuration

Add assets pdfworker in angular.json

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

In modules using pdfModule, import PdfjsModule and configure worker

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

The best way is use SharedModule and export PdfjsModule. Like this you have just to import SharedModule in others modules.

@NgModule({
  imports: [
    CommonModule,
    PdfjsModule.forRoot({workerSrc: 'assets/pdf.worker.js'}),
  ],
  exports: [
    PdfjsModule,
  ],
  declarations: [],
})
export class SharedModule {
}

Components

  • pdfjs-thumbnails : Thumbnails of pdf
  • pdfjs-view : A single page of pdf

Control

  • PdfjsControl : Allow control pdf
  • PdfjsGroupControl : Allow control multi PdfjsControl

objects

  • PdfPage : Represents a pdf page serialisable, usefull for implement features on backend

2.0.39

5 years ago

2.0.38

5 years ago

2.0.37

5 years ago

2.0.36

5 years ago

2.0.35

5 years ago

2.0.34

5 years ago

2.0.33

5 years ago

2.0.32

5 years ago

2.0.31

5 years ago

2.0.30

5 years ago

2.0.29

5 years ago

2.0.28

5 years ago

2.0.27

5 years ago

2.0.26

5 years ago

2.0.25

5 years ago

2.0.24

5 years ago

2.0.22

5 years ago

2.0.20

5 years ago

2.0.19

5 years ago

2.0.18

5 years ago

2.0.17

5 years ago

2.0.14

5 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago