@teammaestro/stencil-pdf-viewer

Stencil PDF Viewer

Usage no npm install needed!

<script type="module">
  import teammaestroStencilPdfViewer from 'https://cdn.skypack.dev/@teammaestro/stencil-pdf-viewer';
</script>

README

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