nativescript-pdf-viewer
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

nativescript-pdf-viewer

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 UIWebView, but 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!

Usage

Demo

Check out the demo folder for a sample usage.

Angular 2

If you're using the plugin with Angular 2, the plugin automatically registers PDFViewer as a valid tag for Angular templates. Usage is simple:

  1. Make sure to import nativescript-pdf-viewer somewhere in your code, e.g:
import 'nativescript-pdf-viewer';
  1. Include the tag in your template:
<PDFViewer [src]="localPath"></PDFViewer>

Try the Demo

To try the demo run the following commands:

npm run setup
npm run demo.ios
npm run demo.android

/nativescript-pdf-viewer/

    Package Sidebar

    Install

    npm i nativescript-pdf-viewer

    Weekly Downloads

    16

    Version

    3.1.0

    License

    MIT

    Last publish

    Collaborators

    • janelletavares
    • sgoris-essent
    • azkarmoulana
    • essent.jesse
    • danielkamphorst
    • patrickvangemert
    • fernandesyuri
    • davidvpe
    • ramkrivaseon
    • p33969
    • s69018
    • erikbrgr-essent
    • radurrant
    • veslav
    • mrtnvh
    • jorisdiesvelt
    • ilija_essent
    • wouter.everse.essent.nl
    • m90992
    • niels_essent
    • nl.santhosh.kumar
    • stefanipeters
    • jeroenverhoevenessent
    • thijsvanerp
    • vinodperumal01
    • dmestry
    • panagiotis.doxopoulos
    • nishanthessent
    • ekta123
    • icyrizard
    • thomasessent
    • melihkorkmaz
    • luukpook
    • svloon
    • spike1292
    • rik_bosch_essent
    • wvdkop-essent
    • sharanyasl
    • sreejanarayanankuttty
    • alihabib
    • geert.jan.evers
    • jimfranke1
    • areijngoudt
    • thijsbloks
    • sanjaikumarsankar
    • essent-mobile-app-team
    • jelle-tno
    • jharskamp
    • m71629
    • frwielstra
    • joren-navara
    • thomas_smeele
    • btaluy
    • geert.rutten
    • vincentbitter
    • falcoworkstno
    • cdebruin
    • niek-essent
    • wesley.quintor
    • snorvisable
    • pcmulder
    • jphoiting
    • tomvoigt
    • lmeijdam
    • petervdwal
    • jboeijenga
    • essent-bot
    • vani.anandamurthy
    • jayanti88
    • abhinandan.nasalapure.essent
    • pavandara
    • jeroenvanderlast
    • c.elshof
    • thedcsherman
    • lucashorward
    • hannahmauritz
    • dbeaart
    • tophernl
    • nimitha
    • markdanney
    • sridharsekar
    • mvlagen
    • emielvanrijn
    • n9iels
    • j.miletic
    • koengriffioenessent
    • geert-navara
    • davidfesten
    • lucaclae
    • ui929171
    • m.cetkovic
    • mleen
    • nielsvdhorst
    • stfnvar
    • walkerrunpdx
    • oscarlodriguez
    • dennis-montana