@teammaestro/stencil-pdf-viewer
v0.1.1
Published
Stencil PDF Viewer
Downloads
6
Keywords
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