@teammaestro/stencil-pdf-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @teammaestro/stencil-pdf-viewer

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

15 MB

Total Files

36

Last publish

Collaborators

  • jgibson55
  • jpinkster
  • meetmaestro
  • sbannigan