npm.io
0.1.1 • Published 8 years ago

@teammaestro/stencil-pdf-viewer

Licence
MIT
Version
0.1.1
Deps
1
Size
14.3 MB
Vulns
0
Weekly
0
Stars
80

Stencil PDF Viewer

This web component allows you to add PDF rendering support to your web (and Ionic native) applications.

Installation

  • npm i @teammaestro/stencil-pdf-viewer

Usage

<st-pdf-viewer src="http://www.mydomain.com/example.pdf"></st-pdf-viewer>
Angular (6+) / Ionic (4+)

In your angular.json file add the following assets matcher in your projects.app.architect.build.options.assets collection:

{
    "glob": "**/*",
    "input": "node_modules/@teammaestro/stencil-pdf-viewer/dist/pdfviewer",
    "output": "./pdfviewer"
}

In your main AppModule (i.e. app.module.ts) add the following import statement:

import '@teammaestro/stencil-pdf-viewer/dist/pdfviewer';

Contributors

Sean Bannigan Sean Perkins Justin True
Sean Bannigan Sean Perkins Justin True