- Version: 1.2.1
- GitHub: https://github.com/corne-de-bruin/nativescript-pdf-view
- Last Day: 1
- Last Week: 4
- Last Month: 28
This is a very basic PDF view implementation that does only one thing, and
that is to display PDF files. It conveniently uses the iOS
for Android it uses AndroidPdfViewer.
This plugin does the bare minimum required to render the PDF, no configuration options, and no error handling have been built yet. I welcome all Pull Requests!
Check out the demo folder for a sample usage.
If you're using the plugin with Angular 2, the plugin automatically registers
PDFView as a valid tag for Angular templates. Usage is simple:
- Make sure to import
nativescript-pdf-viewsomewhere in your code, e.g:
- Include the tag in your template:
<PDFView [src]="src" (load)="onLoad()"></PDFView>
Try the Demo
To try the demo,
cd into the
demo folder, and run the following commands:
tns platform add ios
tns run ios
tns platform add android
tns run android