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

    Install

    npm i nativescript-pdf-viewer

    DownloadsWeekly Downloads

    3

    Version

    3.1.0

    License

    MIT

    Last publish

    Collaborators

    • wesley.quintor
    • spike1292
    • snorvisable
    • pcmulder
    • jphoiting
    • tomvoigt
    • baudin999
    • ssedlan
    • lmeijdam
    • petervdwal
    • jboeijenga
    • essent-bot
    • vani.anandamurthy
    • garkenbout
    • jayanti88
    • dylankruyff
    • abhinandan.nasalapure.essent
    • pavandara
    • jeroenvanderlast
    • c.elshof
    • thedcsherman
    • lucashorward
    • natasa
    • bojan80
    • hannahmauritz
    • dbeaart
    • ramondevaan_essent
    • sanderfasen
    • tophernl
    • ariska.keldermann.essent
    • nimitha
    • markdanney
    • sridharsekar
    • essent2020
    • mvlagen
    • emielvanrijn
    • n9iels
    • j.miletic
    • koengriffioenessent
    • geert-navara
    • davidfesten
    • gijsbertvancorstanje_essent
    • edwincaspersessent
    • lucaclae
    • wxavi
    • dimitriosmandekis
    • ui929171
    • m.cetkovic
    • bryansijs
    • mleen
    • ron.houben.essent
    • nielsvdhorst
    • stfnvar
    • walkerrunpdx
    • oscarlodriguez
    • dennis-montana