0.1.1 • Published 6 years ago

@teammaestro/stencil-pdf-viewer v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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 BanniganSean PerkinsJustin True