1.1.0 • Published 5 months ago

@daibh/pdf v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

Angular PDF Viewer

This library was generated with Angular CLI version 17.0.0 The goal of creating this library to facilitate manipulation with pdf.js on the Angular framework.

Features

  • ✨Convert all BUS and DOM events to Observable
  • ✨Easier to manipulate and customize by typescript code
  • ✨Structure of code more clean

Dependencies:

  • PDF.JS - PDF Reader in JavaScript
  • Angular - Awesome typescript-based framework easier to develop application
  • @daibh/cdk - Library include some function support to develop this library.

Installation

Install the dependencies and devDependencies and start the server.

npm install @daibh/pdf --save

Dependencies versions

LibraryVersion
Angular17.0.0
Pdf.jsv3.8.162
@daibh/cdkv0.0.1

How it work?

@Component({
  selector: 'storybook-pdf-viewer-example',
  template: `
    <div class="pdf-viewer">
        <ngx-pdf [src]="pdfSrc"></ngx-pdf>
    </div>
  `,
  styleUrls: ['./pdf-example.component.scss'],
  standalone: true,
  imports: [
    CommonModule,
    PdfComponent
  ]
})
export class PdfExampleComponent {
  @Input() pdfSrc: string;
}

License

MIT

Free Software, Bless you all!

1.1.0

5 months ago

1.0.0

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

6 months ago